Skip to content

Instantly share code, notes, and snippets.

@salgo
Created September 13, 2014 17:45
Show Gist options
  • Save salgo/0c771bad6001e84718d3 to your computer and use it in GitHub Desktop.
Save salgo/0c771bad6001e84718d3 to your computer and use it in GitHub Desktop.
$dns_hack = <<SCRIPT
echo "; generated by /sbin/dhclient-script
search home
nameserver 8.8.8.8
" > /etc/resolv.conf
SCRIPT
Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: $dns_hack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment