Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dnsmasq - dns lookup slow
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lawless
l33t
l33t


Joined: 03 Nov 2003
Posts: 638
Location: Germany

PostPosted: Fri Jun 08, 2007 10:52 am    Post subject: dnsmasq - dns lookup slow Reply with quote

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
View user's profile Send private message
Lawless
l33t
l33t


Joined: 03 Nov 2003
Posts: 638
Location: Germany

PostPosted: Fri Jun 08, 2007 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum