Problem with DNS lookups (NAT)
Problem with DNS lookups (NAT)
Hello,
I'm experiencing problems with DNS lookups on a Debian VM (both Windows or Linux as a host).
There is a single (NAT) network card attached to the VM.
The VM is used for communication with different domains and sometimes it happens, that when it has to resolve many domains in a short time, then the problem above causes it to freeze on DNS lookups.
The problem can be reproduced, running the following shell script for ~15s:
while [ 1 ]; do nslookup google.pl; done
DNS stops from responding for ~1 minute and I'm getting ";; connection timed out; no servers could be reached" error.
I can still ping a remote host if the domain has been already resolved or if I know its IP address so the network seems to work when this happens.
I've tried to execute the shell script on different Debian VMs and the problem is reproducible on each.
Can anyone help? I can provide some more details if required.
Tested on:
Windows 7 host - VirtualBox 4.1.6
Debian host - VirtualBox 4.1.4
Many thanks,
Marcin.
I'm experiencing problems with DNS lookups on a Debian VM (both Windows or Linux as a host).
There is a single (NAT) network card attached to the VM.
The VM is used for communication with different domains and sometimes it happens, that when it has to resolve many domains in a short time, then the problem above causes it to freeze on DNS lookups.
The problem can be reproduced, running the following shell script for ~15s:
while [ 1 ]; do nslookup google.pl; done
DNS stops from responding for ~1 minute and I'm getting ";; connection timed out; no servers could be reached" error.
I can still ping a remote host if the domain has been already resolved or if I know its IP address so the network seems to work when this happens.
I've tried to execute the shell script on different Debian VMs and the problem is reproducible on each.
Can anyone help? I can provide some more details if required.
Tested on:
Windows 7 host - VirtualBox 4.1.6
Debian host - VirtualBox 4.1.4
Many thanks,
Marcin.
Last edited by DragMZ on 4. Feb 2012, 17:14, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Problem with DNS lookups (NAT)
Post a guests log file (as an attachment) after this has happened.
Re: Problem with DNS lookups (NAT)
Have attached the logs saved when the lookups freezed while the shell script was running. Can't see anything interesting there though.
As you can see, I've upgraded to 4.1.8 but it didn't help.
I'm going to try with different network adapter types (currently I'm using Intel 82540EM).
Regards
As you can see, I've upgraded to 4.1.8 but it didn't help.
I'm going to try with different network adapter types (currently I'm using Intel 82540EM).
Regards
- Attachments
-
Firewall (iptables)-2012-02-04-16-19-00.log- (45.62 KiB) Downloaded 22 times
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Problem with DNS lookups (NAT)
Code: Select all
Host RAM: 3071MB RAM, available: 1519MB
RamSize <integer> = 0x0000000008000000 (134217728)Re: Problem with DNS lookups (NAT)
The VM has 128 MB assigned
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Problem with DNS lookups (NAT)
Why yes it does now that I opened my eyes. Have you tried to increase it a little and see if it fails?
Other than that I don't know what would be causing your issue. As far as VirtualBox is concerned it does not see an issue so this would indicate a guest issue more than likely.
Other than that I don't know what would be causing your issue. As far as VirtualBox is concerned it does not see an issue so this would indicate a guest issue more than likely.
Re: Problem with DNS lookups (NAT)
Yes sure I'll try it. Thanks for your help 
I'm getting some extra details in logs when using "virtio-net" network adapter:
00:03:01.984 virtio-net: failed to allocate SG buffer: size=69 rc=VERR_TRY_AGAIN
BTW - I've tried it with all available adapter types but the problem occurs on all of them.
I'm getting some extra details in logs when using "virtio-net" network adapter:
00:03:01.984 virtio-net: failed to allocate SG buffer: size=69 rc=VERR_TRY_AGAIN
BTW - I've tried it with all available adapter types but the problem occurs on all of them.
Re: Problem with DNS lookups (NAT)
It still doesn't work with 512 MB RAM but I've verified it's fine when using a bridged adapter. Anyway it doesn't solve my problem as I need to use NAT...
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Problem with DNS lookups (NAT)
I don't know what to tell you. You can post a ticket at bugtracker as see what they say.
Re: Problem with DNS lookups (NAT)
Ok sure, I'll try it.
Thanks!
Thanks!
Re: Problem with DNS lookups (NAT)
Looks I have found a workaround for the problem:
no more timeouts with the DNS proxy turned on 
Code: Select all
VBoxManage modifyvm "VM name" --natdnsproxy1 on
Last edited by DragMZ on 4. Feb 2012, 20:14, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Problem with DNS lookups (NAT)
Ah yes. I remember now. This used to be a real issue, but I thought that had been fixed a long time ago. Good for you.