Skip to content

Instantly share code, notes, and snippets.

@deepaksubu
Forked from mitchellh/gist:1277049
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save deepaksubu/2379d682e1427285b9ac to your computer and use it in GitHub Desktop.

Select an option

Save deepaksubu/2379d682e1427285b9ac to your computer and use it in GitHub Desktop.

Revisions

  1. @mitchellh mitchellh revised this gist Feb 25, 2012. 1 changed file with 2 additions and 10 deletions.
    12 changes: 2 additions & 10 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,5 @@
    Vagrant::Config.run do |config|
    # ...

    config.vm.customize do |vm|
    # Use the host resolver for DNS so that VPN continues
    # to work within the VM
    vm.network_adapters.each do |na|
    if na.enabled? && na.nat_driver
    na.nat_driver.dns_use_host_resolver = true
    end
    end
    end
    end
    config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    end
  2. @mitchellh mitchellh renamed this gist Oct 11, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @mitchellh mitchellh created this gist Oct 11, 2011.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    Vagrant::Config.run do |config|
    # ...

    config.vm.customize do |vm|
    # Use the host resolver for DNS so that VPN continues
    # to work within the VM
    vm.network_adapters.each do |na|
    if na.enabled? && na.nat_driver
    na.nat_driver.dns_use_host_resolver = true
    end
    end
    end
    end