Skip to content

Instantly share code, notes, and snippets.

@tmatilai
Created October 31, 2013 18:53
Show Gist options
  • Save tmatilai/7254921 to your computer and use it in GitHub Desktop.
Save tmatilai/7254921 to your computer and use it in GitHub Desktop.
Use host's resolver (On OS X with VPN) for a VirtualBox Vagrant VM
Vagrant.configure('2') do |config|
# ...
config.vm.provider :virtualbox do |vbox|
vbox.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment