VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Postings relating to old VirtualBox pre-releases
Post Reply
spupuz
Posts: 10
Joined: 2. Jul 2009, 15:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.04 and 9.10

VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by spupuz »

Hi when using VirtualBox 3.1.0 Beta 1 or Beta 2
i have problems with DNS resolution with my linux guest the ping and network works the dns initially seems to work but after a while i do have problems and it do not resolve names.

host windows xp sp3
guest ubuntu karmic koala 9.10
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by Sasquatch »

Does the DNS server on the Guest still exist and is it still valid, compared to the Host? You don't move to a different location or network? Are websites still accessible by IP, like 74.125.79.104 for google.com?
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.
spupuz
Posts: 10
Joined: 2. Jul 2009, 15:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.04 and 9.10

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by spupuz »

yeah dns is the same doing cat /etc/resolv.conf

but i initially can resolve names but after i do not!
Hachiman
Posts: 94
Joined: 18. Dec 2008, 21:04
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Solaris, NetBSD

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by Hachiman »

spupuz wrote:yeah dns is the same doing cat /etc/resolv.conf

but i initially can resolve names but after i do not!
Does cat /etc/resolv.conf differs from ipconfig /displaydns output on host? Have you switched your network location?
if yes could you please try

Code: Select all

VBoxManage setextradata "Linux Guest"
      "VBoxInternal/Devices/pcnet/0/LUN#0/Config/UseHostResolver" 1
--
Kind regards
Sr. Software Engineer
Oracle Corporation
Vasily Levchenko

PS. Happy VBoxing.
spupuz
Posts: 10
Joined: 2. Jul 2009, 15:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.04 and 9.10

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by spupuz »

when i got problem in NAT mode the dns is the same in bot the guest and the host.
spupuz
Posts: 10
Joined: 2. Jul 2009, 15:37
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu 9.04 and 9.10

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by spupuz »

please can someone help me on that? do you need any logs?
Hachiman
Posts: 94
Joined: 18. Dec 2008, 21:04
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Solaris, NetBSD

Re: VirtualBox 3.1.0 Beta 2 NAT DNS Problem

Post by Hachiman »

spupuz wrote:please can someone help me on that? do you need any logs?
Yep logs will be appreciated. Pcap files (please see http://www.virtualbox.org/wiki/Network_tips for details) are appreciated as well.
--
Kind regards
Sr. Software Engineer
Oracle Corporation
Vasily Levchenko

PS. Happy VBoxing.
Post Reply