Skip to content

Instantly share code, notes, and snippets.

@hedgehog
Forked from mitchellh/gist:1277049
Created December 21, 2011 13:28

Revisions

  1. @mitchellh mitchellh renamed this gist Oct 11, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @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