Strange DNS problem

Discussions related to using VirtualBox on Windows hosts.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Strange DNS problem

Post by brochs »

HI,

I am having a very strange problem on Windows 7 x 64 host. When running guests in NIC bridge mode I get a IP from DHCP on guests, I can ping all IP addresses both private and on internet, but pinging e.g. www.pcworld.com I get no response. Clearly it’s something with the DNS which is the same as my host use, and I can ping it from guest. Setting guest OS to NAT everything works just fine.
The problem exist in both windows and Linux guests (X86). Someone have any ideas? I have to mention that I have tried VMware Desktop and get the same problem there.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Strange DNS problem

Post by vbox4me2 »

Check the exact IP values between Host and Guest, probably the gateway is missing.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

vbox4me2 wrote:Check the exact IP values between Host and Guest, probably the gateway is missing.
No, the Gateway is not missing, without the right gateway I woul not be able to ping official IP's on the internet.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Strange DNS problem

Post by vbox4me2 »

Did you check the other values? it can very well be your router is misconfigured, see the quickclick FAQ.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

vbox4me2 wrote:Did you check the other values? it can very well be your router is misconfigured, see the quickclick FAQ.
Everything is checked, this is not a router problem, It has to be someting that's blocking DNS requests on the host's NIC when coming from the guest, I just cant figure out what. Could it be that the VB drivers are having problems with Windows 7? I am now using Windows 7 RTM Profesional.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Strange DNS problem

Post by Perryg »

Put a known good DNS in the guest settings instead of using the routers DNS. It sounds like the first DNS entry is down or flakey and VB will only try to use the first one.
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: Strange DNS problem

Post by Sasquatch »

If I understand the problem correctly, you can ping www.google.com without issues from both the Host and Guest, but you can't ping www.pcworld.com? So it's only that one specific site? If so, then it's normal. I can't ping it on my end either, but I do get the DNS name resolved. Some sites don't allow ping, because it can be used for a (D)DoS attack.
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.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

Sasquatch wrote:If I understand the problem correctly, you can ping http://www.google.com without issues from both the Host and Guest, but you can't ping http://www.pcworld.com? So it's only that one specific site? If so, then it's normal. I can't ping it on my end either, but I do get the DNS name resolved. Some sites don't allow ping, because it can be used for a (D)DoS attack.
No, that is not right. I can ping 74.125.79.147 (witch is Google), but I can't ping www.google.no or any other site by name only by IP.

And to the previous post: since my router only give out one DNS server from DHCP, 192.168.97.1 (same as gw) and the router have several DNS servers in it's WAN setup I am also sure that it's not my DNS that's not responding.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Strange DNS problem

Post by Perryg »

Did you try to put in a known good DNS on the guest?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Strange DNS problem

Post by vbox4me2 »

Can you ping the DNS/router? do a tracert to the DNS and the DNS of your ISP.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

vbox4me2 wrote:Can you ping the DNS/router? do a tracert to the DNS and the DNS of your ISP.
I have tried everything to make sure the DNS is good. Also as I write in my first post, it's the same DNS and gw as I have on my host system, and no problems what so ever here. That's why this is so strange. My guess would be that Windows 7 in some way block the DNS traffic as the Virtual bridge NIC of the guest have to pass the NIC of the host.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Strange DNS problem

Post by vbox4me2 »

I've seen such an issue which was related to firewall rules on the Host.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

vbox4me2 wrote:I've seen such an issue which was related to firewall rules on the Host.
That was the first thing I was thinking to, but turning FireWall off did'nt fix the problem :(
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: Strange DNS problem

Post by Sasquatch »

Turning off a firewall doesn't always work. Sometimes you need to set it to accept all, or even remove it completely before it starts to work properly again. After the test, you can reinstall it, the settings should have stayed behind.
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.
brochs
Posts: 13
Joined: 8. Jul 2009, 10:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Windows 7 (32), Ubuntu 9.04

Re: Strange DNS problem

Post by brochs »

Sasquatch wrote:Turning off a firewall doesn't always work. Sometimes you need to set it to accept all, or even remove it completely before it starts to work properly again. After the test, you can reinstall it, the settings should have stayed behind.
As I don't have any third party FW installed, only the one that comes with Windows 7, uninstaling is not an option. But I am sure that turning it off is all that's needed if that was the problem.

I am sure this is not a network problem, it has to be some kind of problem with the fact this beeing Windows 7 (maybe also 64bit), I have not tried Virtualbox with Vista so I can't say if the same problem exists there.
Post Reply