From owner-freebsd-questions@FreeBSD.ORG Fri Dec 15 07:34:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23BFE16A4B3 for ; Fri, 15 Dec 2006 07:34:14 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: from smtp5.wlink.com.np (smtp5.wlink.com.np [202.79.32.52]) by mx1.FreeBSD.org (Postfix) with SMTP id 0B2AD43E38 for ; Fri, 15 Dec 2006 07:30:58 +0000 (GMT) (envelope-from teklimbu@wlink.com.np) Received: (qmail 79577 invoked from network); 15 Dec 2006 07:27:39 -0000 Received: from unknown (HELO smtp1.wlink.com.np) (202.79.32.76) by 0 with SMTP; 15 Dec 2006 07:27:39 -0000 Received: (qmail 13253 invoked by uid 98); 15 Dec 2006 07:32:33 -0000 Received: from 202.79.36.216 by smtp1.wlink.com.np (envelope-from , uid 1009) with qmail-scanner-1.25 (clamdscan: 0.88.4/2205. Clear:RC:1(202.79.36.216):. Processed in 0.025357 secs); 15 Dec 2006 07:32:33 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp1.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.36.216):. Processed in 0.025357 secs) Received: from [202.79.36.216] (HELO teklimbu.wlink.com.np) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 15 Dec 2006 07:32:30 -0000 (Fri, 15 Dec 2006 13:17:30 +0545) Received: (qmail 84503 invoked by uid 1009); 15 Dec 2006 07:43:21 -0000 Received: from unknown (HELO teklimbu.wlink.com.np) (202.79.36.216) by teklimbu.wlink.com.np with SMTP; 15 Dec 2006 07:43:21 -0000 Date: Fri, 15 Dec 2006 13:28:21 +0545 From: Tek Bahadur Limbu To: "Chad Gross" Message-Id: <20061215132821.63ee7df6.teklimbu@wlink.com.np> In-Reply-To: <17489c7a0612140534l475bc427l28292e5de8adb098@mail.gmail.com> References: <20061214145735.658f44b4.teklimbu@wlink.com.np> <20061214090811.GE18145@rescomp.berkeley.edu> <20061214175501.04c4bcb2.teklimbu@wlink.com.np> <17489c7a0612140534l475bc427l28292e5de8adb098@mail.gmail.com> Organization: Worldlink Communications Pvt. Ltd. X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp1.wlink.com.np Spam: No ; 0.8 / 5.0 X-Spam-Status-WL: No, hits=0.8 required=5.0 Cc: freebsd-questions@freebsd.org, ccowart@rescomp.berkeley.edu Subject: Re: Local DNS Caching not caching on external interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 07:34:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 14 Dec 2006 08:34:11 -0500 "Chad Gross" wrote: > On 12/14/06, Tek Bahadur Limbu wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Thu, 14 Dec 2006 01:08:11 -0800 > > Christopher Cowart wrote: > > > > > On 14:57 Thu 14 Dec , Tek Bahadur Limbu wrote: > > > > Dear All, > > > > > > > > I am very new to Bind and FreeBSD. > > > > > > > > I have just configured a Local DNS server using the built-in > > > > Bind 9.3.1 on a FreeBSD 5.4 machine. > > > > > > > > My problem is that the machine can cache queries on the > > > > localhost and loop back (127.0.0.1) interface only. > > > > > > > > I have a public static IP on this machine too and I can't seem > > > > to query the caching name server from my local network. > > > > > > > > In Linux, this is no problem. I just can't seem to get Bind to > > > > work as in my local network. It works only on the loopback > > > > interface. > > > > > > The default /etc/namedb/named.conf configuration file for BIND > > > says: > > > > > > | // If named is being used only as a local resolver, this is a > > > | safe default. // For named to be accessible to the network, > > > | comment this option, specify // the proper IP address, or > > > | delete this option. listen-on { 127.0.0.1; }; > > > > > > It looks like if you comment out that option, it will listen on * > > > by default. You could also add the other IP address on which you > > > want named to listen. > > > > > > -- > > > Chris Cowart > > > Network and Infrastructure Systems Administrator > > > RSSP-IT, UC Berkeley > > > "May all your pushes be popped" > > > > > > > Dear Chris, > > > > Thank you for your help. I did comment and added my public static IP > > like the following: > > > > > > listen-on { 202.x.x.x; }; # My Static IP > > > > Now when I do from my local PC: > > > > dig yahoo.com @202.x.x.x , I can do DNS lookups. > > > > But when I try doing that from another computer on my network, I > > can't do any DNS lookups. > > > > > > Is that anything that I miss? > > > > > > - -- > > > > > > With best regards and good wishes, > > > > Yours sincerely, > > > > Tek Bahadur Limbu > > > > (TAG/TDG Group) > > Jwl Systems Department > > > > Worldlink Communications Pvt. Ltd. > > > > Jawalakhel, Nepal > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2.2 (FreeBSD) > > > > iD8DBQFFgT8ZVrOl+eVhOvYRAn8OAJwOOC6+C8mnY+YBP+1GxG2uDTfWpgCfTFr1 > > 168ArGMkI0+9Qj/MpzFbmUo= > > =p9RV > > -----END PGP SIGNATURE----- > > _______________________________________________ > > > > You have to tell the other machines on your network to use the IP of > the local DNS server for domain name resolution. If you are using > DHCP you can configure your DHCP server to give this information with > the IP. Otherwise you must manually do it, which will be different > between operating systems. > > HINT: In FreeBSD add the IP of the DNS server to /etc/resolve.conf > > Chad > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Dear Chad, Thanks for the tip. I am using static public IPs in all my machines in my network. Yes I have added the IP of the local caching nameserver in /etc/resolve.conf but it still not resolving. I am still puzzled and any help would be appreciated. As I said, the local caching nameserver can resolve domain names on it's own but I can't seem to use it from my network. Thanks. -- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFFglIZVrOl+eVhOvYRAu2eAJ0RoV9ajmjUxoAa6BWM+jHjsUpjDACePkA8 Robngcewgz8oiDfuhUZZySE= =qtSI -----END PGP SIGNATURE-----