Lost DNS resolution

Discussions about using Windows guests in VirtualBox.
Post Reply
eric190
Posts: 3
Joined: 30. Jun 2009, 15:24
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: XP PRO

Lost DNS resolution

Post by eric190 »

Hello,

I'm on Windows Xp Pro virtualized with Virtual Box on OSX leopard (mac book).

Sometimes, i lost DNS resolution under XP PRO. The network interface have no problem, i tried some command line tools instructions with ipconfig (/release, /flushdns) with no result

The problem seems to appear when I turn off my mac book.

If I restart the network works well.

Thanks for your help

Eric.
eric190
Posts: 3
Joined: 30. Jun 2009, 15:24
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: XP PRO

Re: Lost DNS resolution

Post by eric190 »

VB network configuration :
?

Code: Select all

Network Card 1: PCnet-PCI II (NAT)
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

Re: Lost DNS resolution

Post by Sasquatch »

If your Host DNS server changes, VB will try to use the wrong DNS server. Reboot the Guest after you reboot your Mac, or restart the Guest networking (repair the interface). That should do the trick.
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.
eric190
Posts: 3
Joined: 30. Jun 2009, 15:24
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: XP PRO

Re: Lost DNS resolution

Post by eric190 »

That's a good idea...

I found a solution in VB doc :
Windows hosts
If you configure a VM to use NAT networking (the default), the DNS relay in VirtualBox forwards all DNS queries to the first configured DNS server. Unfortunately on Windows the first configured DNS server is frequently not working (e.g. because it corresponds to a currently not connected interface). To work around this problem, configure a working DNS server in the network configuration inside the guest OS.
I solved the problem in configuring manualy the DNS servers in the TCP/IP settings section (in XP). It's probably not the best way but it works for the moment.

Thanks for the answer.
Post Reply