Problem:
DNS not properly working on vagrant boxes on some Windows installations using the standard setup.
How to reproduce:
ping any host by it's hostname (eg ping google.com) it should not resolve.
How to fix:
- Halt the vagrant box
- In the config section of the Vagrantfile add
config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] end
- start the vagrant box again
How to validate:
Ping any host again - it should now resolve correctly
This was tested using a Win10 Pro (build 1703) - further investigation might be required.