Virtual guest: Unknown host www.google.com

3

I have Debian 8.6 installed on a virtual guest running in VirtualBox.

The network adapter setting is set to Bridged Adapter so that I can access the guest from my LAN.

I get an IP(192.168.1.150) from DHCP server. resolv.conf contains the following:

domain mydomain.local
search mydomain.local
nameserver 10.17.5.45

Nameserver is offsite, but it should work because I have another guest running CentOS and it can ping www.google.com, but not Debian.

Tried commenting out # domain and # search and setting nameserver to 8.8.8.8, but that didn't resolve the issue. I can't ping the nameserver, but can ping 192.168.1.0/24 network from the guest. LAN client(including VM host) can ping nameserver no problem.

Any idea what could be causing this?

Trevor

Posted 2016-09-27T14:02:11.223

Reputation: 31

Can you ping your dhcp assignated gateway ? – Remy Grandin – 2016-09-27T14:32:31.030

@RemyGrandin No. 100% packet loss if I try to ping default gateway which is also DHCP. Same if I ping 8.8.8.8. But I can ping other devices on 192.168.1.X/24 – Trevor – 2016-09-27T14:56:07.753

I can also ping from VM host to VM guest. – Trevor – 2016-09-27T16:06:49.673

If I change Network adapter to NAT then I get 10.0.X.X DHCP IP and can ping everything including the Internet and 192.168.1.X network, but I can't reach the guest from my host. – Trevor – 2016-09-27T19:22:33.060

Your problem come from here, if you can't comunicate with the gateway, you can't access other network (including the internet). As your others VM works, the problem seem to come from this machine configuration. Can you check your iptables on your debian to ensure there is no rule blocking your trafic ? – Remy Grandin – 2016-09-28T07:49:23.187

@RemyGrandin I'm haven't worked with iptables before, but this is the pastebin of iptables --list: http://hastebin.com/oyaxaciriz.sql

– Trevor – 2016-09-30T15:02:05.927

I tried "disabling" iptables from this forum post, but I still can't ping outside or default gateway: http://forums.debian.net/viewtopic.php?f=10&t=112759

– Trevor – 2016-09-30T15:56:13.673

No answers