Problem with DNS lookups (NAT)
Posted: 4. Feb 2012, 17:03
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.