DNS Issue

Discussions related to using VirtualBox on Linux hosts.
Post Reply
darkstar
Posts: 1
Joined: 24. Jan 2009, 21:07

DNS Issue

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
paulpopa
Posts: 1
Joined: 25. Jan 2009, 17:31

Post 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.
Post Reply