I have a Vagrant-provisioned CentOS guest on an Ubuntu host. Internet access from host is absolutely fine. But Internet access from guest often fails unless host is using VPN.
For example:
Host using standard network adapter, no VPN:
$ curl https://packagist.org/packages.json
curl: (6) Couldn't resolve host 'packagist.org'
Host using VPN:
$ curl https://packagist.org/packages.json
{ successful-json-payload }
Guest networking is NAT. VirtualBox GUI showing the correct host adapter.
I live in Thailand and VPN is US-based. Ideas?
curl: (6) Couldn't resolve host
. And still, if I connect the host to my VPN, those curls all sail through smoothly.tcpdump host <guest ip> and port 53
on the host to see if the DNS queries are making it out ok.traceroute -n
runs clean to completion. Buttraceroute
to another ping-able (!) IP dies. @Paul: IP of guest is 10.0.2.15. Ping from host to guest fails.tcpdump
on host as suggested fails ("no suitable device found"). Thanks for all the ideas. Keep 'em coming! ;-)