Virtualbox and DNS resolution
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I created a virtual NAT network with 3 VM turning with Ubuntu.
I have a VM with two virtual network cards to be a router which is connected to the WAN and the LAN.
I have two other VM in the LAN.
When I ping public ip like the ip of Google with any VM, it works.
But only the router can resolve dns.
I configured the dns server on the others VM as 8.8.8.8, and I restarted the network.
I can ping 8.8.8.8, and in the conf file all is alright but when I do "apt-get update" or I go to google.fr in Firefox , it doesn't works because I can't resolve any dns.
Any help?
ubuntu virtualbox dns nat
add a comment |Â
up vote
0
down vote
favorite
I created a virtual NAT network with 3 VM turning with Ubuntu.
I have a VM with two virtual network cards to be a router which is connected to the WAN and the LAN.
I have two other VM in the LAN.
When I ping public ip like the ip of Google with any VM, it works.
But only the router can resolve dns.
I configured the dns server on the others VM as 8.8.8.8, and I restarted the network.
I can ping 8.8.8.8, and in the conf file all is alright but when I do "apt-get update" or I go to google.fr in Firefox , it doesn't works because I can't resolve any dns.
Any help?
ubuntu virtualbox dns nat
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I created a virtual NAT network with 3 VM turning with Ubuntu.
I have a VM with two virtual network cards to be a router which is connected to the WAN and the LAN.
I have two other VM in the LAN.
When I ping public ip like the ip of Google with any VM, it works.
But only the router can resolve dns.
I configured the dns server on the others VM as 8.8.8.8, and I restarted the network.
I can ping 8.8.8.8, and in the conf file all is alright but when I do "apt-get update" or I go to google.fr in Firefox , it doesn't works because I can't resolve any dns.
Any help?
ubuntu virtualbox dns nat
I created a virtual NAT network with 3 VM turning with Ubuntu.
I have a VM with two virtual network cards to be a router which is connected to the WAN and the LAN.
I have two other VM in the LAN.
When I ping public ip like the ip of Google with any VM, it works.
But only the router can resolve dns.
I configured the dns server on the others VM as 8.8.8.8, and I restarted the network.
I can ping 8.8.8.8, and in the conf file all is alright but when I do "apt-get update" or I go to google.fr in Firefox , it doesn't works because I can't resolve any dns.
Any help?
ubuntu virtualbox dns nat
edited Feb 26 at 12:13
Pierre.Vriens
94241015
94241015
asked Feb 26 at 11:31
Nassim Quelconque
1
1
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49
add a comment |Â
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426660%2fvirtualbox-and-dns-resolution%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
The systems that have problems do have /etc/resolv.conf with "nameserver 8.8.8.8" and they can ping 8.8.8.8? If so, is a firewall involved?
â Gerard H. Pille
Feb 26 at 15:55
On the iptables rules I allow POSTROUTING anywhere to anywhere for everybody, INPUT and OUTPUT have default config. Is the firewall able to allowing to ping the server but preventing dns resolution?
â Nassim Quelconque
Feb 28 at 11:01
That is possible, ICMP (ping) is not UDP is not TCP, iptables can handle each one diferently. Just to be sure: what error do you get with "nslookup www.google.be"? Concerning postrouting, you do nat too?
â Gerard H. Pille
Feb 28 at 11:49