From owner-freebsd-questions@FreeBSD.ORG Thu May 12 11:05:25 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 504B816A4CE for ; Thu, 12 May 2005 11:05:25 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id E85A843D5A for ; Thu, 12 May 2005 11:05:24 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by ptb-relay01.plus.net with esmtp (Exim) id 1DWBVL-00024f-9D for freebsd-questions@freebsd.org; Thu, 12 May 2005 12:05:23 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Thu, 12 May 2005 12:05:17 +0100 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505121205.17487.ian@codepad.net> Subject: Slow DNS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 11:05:25 -0000 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