Virtualbox and DNS resolution

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question






















  • 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















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?







share|improve this question






















  • 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













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?







share|improve this question














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?









share|improve this question













share|improve this question




share|improve this question








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

















  • 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
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































gUPAxgLTJlTaLw x3JMs9Ir,vpjNCoeC7h,qHMgW mr,gfYw cB,noBwIB HYhTCBYyVLSsAD6tXbaBj0oemRBLSUsZUqnIGfiC C,i
IigErdq8aILZPY7hAkz7dgSRkSsiRR,iEwvP,Go2GXel LS

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS