Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2005 12:05:17 +0100
From:      Xian <ian@codepad.net>
To:        freebsd-questions@freebsd.org
Subject:   Slow DNS
Message-ID:  <200505121205.17487.ian@codepad.net>

next in thread | raw e-mail | index | archive | help
I have just set up a router and would like DNS caching on it. I have tried to 
set it up an it kind of works, just computer using it as their nameserver 
take ages on DNS queries, up to 4-5 seconds.

To set up the DNS caching I added the ip of another DNS server 
to /etc/resolv.conf and added namd_enable="YES" to /etc/rc.conf.
I also tweaked the following lines in /var/named/etc/namedb/named.conf: 
listen-on       { "any"; };
forwarders {
       192.168.0.1;
};
query-source address * port 53;

Any ideas on how to make it run better? The DNS server at 192.168.0.1 answers 
DNS queries in a few milliseconds.

-- 
/Xian

"Too many of us look upon Americans as dollar chasers. This is a cruel libel, 
even if it is reiterated thoughtlessly by the Americans themselves."
Albert Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505121205.17487.ian>