View previous topic :: View next topic |
Author |
Message |
Lawless l33t
Joined: 03 Nov 2003 Posts: 638 Location: Germany
|
Posted: Fri Jun 08, 2007 10:52 am Post subject: dnsmasq - dns lookup slow |
|
|
Hi,
I have a local dnsmasq running because I have several vpn connections and I need different nameservers for different 'search' entries in resolv.conf.
Without dnsmasq every connection needed to replace resolv.conf with its version now I have only nameserver 127.0.0.1 there and do the rest with dnsmasq.
The problem now is that resolving dns names is very slow - even ones that should be in the local cache already.
When I use nslookup for any domain I get an instant answer - no delay. But every application, from opera, xchat to wget needs several seconds for 'resolving hostname...'
One thing that could cause this: One upstream server in dnsmasq.conf is not always up/reachable so dnsmasq may run into a timeout but my idea of dnsmasq was that he sends the query to all server entries and takes the first answer.
Can anyone think of an explanation? Does the order of the server entries play a role? (The unreachable server is the last one). _________________ Kernel panic: I have no root and I want to scream |
|
Back to top |
|
|
Lawless l33t
Joined: 03 Nov 2003 Posts: 638 Location: Germany
|
Posted: Fri Jun 08, 2007 11:01 am Post subject: |
|
|
Hm, ok. I just took the unavailable server out and it is solved... but when I change the network this server will be the one to use and another will be unreachable... is there a good solution for that? _________________ Kernel panic: I have no root and I want to scream |
|
Back to top |
|
|
|