Page 1 of 1

DNS Issue

Posted: 24. Jan 2009, 21:12
by darkstar
I know this forum is for Virtual Box for Linux. But I thought Windows users cannot answer this question and therefore I am pasting it here.

I installed Virtual Box for Windows and then installed CentOS in Virtualbox.

I am seeing a very surprising fact. I was ping a domain from Windows Vista and it was showing me the fresh IP address of that domain.

I pinged the same domain from inside CentOS, which is in Virtualbox, and it was showing old IP address.

I am totally confused. I tried all stunts - from cleaning Windows DNS to Linux DNS.



Can some one tell what is this funny problem?


Tahseen

Posted: 24. Jan 2009, 21:41
by Sasquatch
Your Guest will use the primary DNS server of the Host. And are you sure that it's the 'old' and 'new' IP address? If I do a host www.google.com on my Linux machine, I get four (4) different IP addresses. So the server is running a load balancer with several IP addresses so that one server isn't under constant load.

Posted: 25. Jan 2009, 19:32
by paulpopa
I have another problem with DNS in VB 2.1.2.

the host is a win XP machine while the guest is pclinuxos . for networking I've selected NAT networking in the VB settings.

in linux guest I've have selected Dynamic IP - DHCP and also I've verified the resolv.conf entries (they are fine) for the DNS entries.

so, i have internet connection from Linux guest (e.g. connected to google by IP/ping to external server is also just fine), but the DNS translation of IPs refuses to work.

also, i cannot install any other Linux packages because the apt tool cannot connect to the remote repositories.