From owner-freebsd-questions Sat Feb 28 21:16:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA11491 for freebsd-questions-outgoing; Sat, 28 Feb 1998 21:16:34 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt050ndd.san.rr.com (root@dt050ndd.san.rr.com [204.210.31.221]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA11481 for ; Sat, 28 Feb 1998 21:16:22 -0800 (PST) (envelope-from Studded@san.rr.com) Received: from san.rr.com (dougdougdougdoug@localhost [127.0.0.1]) by dt050ndd.san.rr.com (8.8.8/8.8.8) with ESMTP id VAA00839; Sat, 28 Feb 1998 21:15:59 -0800 (PST) (envelope-from Studded@san.rr.com) Message-ID: <34F8EF0F.BBC132BC@san.rr.com> Date: Sat, 28 Feb 1998 21:15:59 -0800 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-STABLE-0228 i386) MIME-Version: 1.0 To: Javier Henderson CC: Greg Lehey , "Tim O'Neil" , questions@FreeBSD.ORG, Frank McConnell Subject: nslookup sucks potatoes (Was: need more net hints) References: <199803010234.SAA10825@rah.star-gate.com> <3.0.3.32.19980228194430.00b2ece0@pop.flash.net> <19980301144341.01849@freebie.lemis.com> <199803010428.UAA17967@kjsl.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Javier Henderson wrote: > > Greg Lehey writes: > > On Sat, 28 February 1998 at 19:44:30 -0800, Tim O'Neil wrote: > > > I was wondering what exactly was meant when nslookup > > > reports "*** Can't find server for address 10.0.0.1: No > > > response from server. > > > > This one means that there is no reverse lookup for network 10. > > I respectfully disagree, and submit that resolv.conf is > pointing the resolver to 10.0.0.1, and named is not running on > that system (presumably the local host). Actually (and with all due respect) this is the infamous "nslookup sucks" error. :) This happens when you set up named on a system and put 'nameserver 10.0.0.1' in /etc/resolv.conf without setting up a reverse file for that address. For some odd reason nslookup won't function properly if it can't find a hostname for the IP address of the nameserver you're trying to use. There are several ways to solve this problem, fortunately they aren't tough to do. The canonical way to set up a local nameserver is to put 'nameserver 127.0.0.1' as the first entry in /etc/resolv.conf, IF you use that file. If you're only using one server and it's local (on the same machine), it's not necessary. There is a script to create a reverse file for the loopback address in /etc/namedb (make-localhost). You should run that script to generate the zone file and add it to the list of primary zones in /etc/named.boot. If you need the nameserver to listen on 10.0.0.1 for some reason, you should create a reverse file for that zone using the one created for localhost as a model and put that in as a primary in /etc/named.boot. You shouldn't need the root zone for any of this. You should probably fix up the localhost zone anyway, but you can also avoid some of these problems by using dig instead of nslookup. :) Hope this helps, Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud operator, designer and maintainer of the world's largest *** Internet Relay Chat server. 5,328 clients and still growing. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message