From owner-freebsd-questions Fri Aug 14 11:31:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA14531 for freebsd-questions-outgoing; Fri, 14 Aug 1998 11:31:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA14502 for ; Fri, 14 Aug 1998 11:31:37 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id OAA00591; Fri, 14 Aug 1998 14:30:06 -0400 (EDT) (envelope-from listread) Message-Id: <199808141830.OAA00591@lucy.bedford.net> Subject: Re: FreeBSD DNS In-Reply-To: <35D466C9.2F66@interpath.com> from Michael Jaskowiak at "Aug 14, 98 12:33:23 pm" To: skovian@interpath.com Date: Fri, 14 Aug 1998 14:30:05 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael Jaskowiak wrote: > I am trying to set up a DNS on my 10base-T network. The computers that > I am trying to use this for are 2 SCO UnixWare and 6 FreeBSD 2.2.5 > servers. The computer that will be the DNS is FreeBSD 2.2.5. I have > tried reading the man page for named, but I could not get it to work by > reading that. What I have set up now is pretty much straight out of > Greg Lehey's The Complete FreeBSD. Here is a screen shot of the error > message that I get when I 'tail -20 /var/log/message' after I > initialize named with 'named -b /etc/namedb/named.boot': > > Aug 14 12:09:30 samuel su: mike to root on /dev/ttyp0 > Aug 14 12:17:01 samuel named[490]: starting. named 4.9.6-REL Tue Oct 21 > 13:08:0 > 4 GMT 1997 jkh@time.cdrom.com:/usr/obj/usr/src/usr.sbin/named > Aug 14 12:17:01 samuel named[490]: localhost.rev: No such file or > directory Is there such a file in /etc/namedb? It should look like: ------------------------------------------------------------------------- @ IN SOA samuel.rcsal.com. mike.rcsal.com. ( 1996052603 ; 360000 ; 3600 ; 3600000 ; 360000 ; ) NS localhost. 1 PTR localhost. ------------------------------------------------------------------------- I don't see a /forward/ lookup file for localhost in named.boot. It should (IMHO -- there are 'opinions' about this) look like: ---------------------------------------------------------------------- @ IN SOA samuel.rcsal.com. mike.rcsal.com. ( 1996052606 ; 360000 ; 3600 ; 3600000 ; 604800 ; ) NS samuel.rcsal.com. localhost. IN A 127.0.0.1 ---------------------------------------------------------------------- and be referenced in named.boot with: primary localhost localhost > Aug 14 12:17:01 samuel named[490]: rcsal-reverse: line 7: database > format error > (samuel.rcsal.com.) Well, you didn't post the one that had the error :) If it's at line 7, I'd suspect a missing . or somesuch nonsense in the NS record, or maybe bogosity in the SOA. > Aug 14 12:17:01 samuel named[490]: Zone "120.5.135.IN-ADDR.ARPA" (file > rcsal-rev > erse): no SOA RR found Yup, probably a bogus SOA record. Let's have a peek? > Aug 14 12:17:01 samuel named[490]: primary zone "120.5.135.IN-ADDR.ARPA" > rejecte > d due to errors (serial 1998081315) > Aug 14 12:17:01 samuel named[491]: Ready to answer queries. > > I am doing this through a telnet session to the server in question. Is > that OK? What puzzles me is the fact that I am following the example > almost as it is writtin in the book. Here is my named.boot file: > > directory /etc/namedb > > ; type domain source host/file backup > file > > cache . > named.root These two preceding lines are one line in the original, right? add: primary localhost localhost > primary 0.0.127.IN-ADDR.ARPA localhost.rev > primary rcsal.com db.rcsal.com > primary 120.5.135.IN-ADDR.ARPA rcsal-reverse > > > And here is my db.rcsal.com file: > > rcsal.com. IN SOA samuel.rcsal.com. mike.rcsal.com. > ( > 1998081301 > 86400 > 7200 > 8640000 > 86400 ) > > > IN NS ns > ns IN A 135.5.120.101 > > data IN A 135.5.120.97 > cqdx IN A 135.5.120.100 > samuel IN A 135.5.120.101 > orville IN A 135.5.120.102 > april IN A 135.5.120.106 > freeb IN A 135.5.120.150 > ppro IN A 135.5.120.110 > bsdoscar IN A 135.5.120.151 > > This is really getting to me. Can someone give me some hints? It is > difficult to understand why I am having these troubles. If you still have trouble, let me know. It's my turn in the "named setup syntax bug" barrel, I guess. Dave -- Bedford County, PA -- 47,000 polite, friendly Appalachians, 4,000 of whom have concealed-carry permits. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message