From owner-freebsd-questions Tue Oct 5 14:47:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cask.force9.net (cask.force9.net [195.166.128.29]) by hub.freebsd.org (Postfix) with SMTP id 651CE14E77 for ; Tue, 5 Oct 1999 14:47:05 -0700 (PDT) (envelope-from ric@sinclairassoc.force9.co.uk) Received: (qmail 28515 invoked from network); 5 Oct 1999 21:47:03 -0000 Received: from unknown (HELO sinclairassoc.force9.co.uk) (212.56.119.230) by cask.force9.net with SMTP; 5 Oct 1999 21:47:03 -0000 Message-ID: <37FA71C4.941239AF@sinclairassoc.force9.co.uk> Date: Tue, 05 Oct 1999 22:46:44 +0100 From: Richard Morte Organization: Sinclair Associates X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: Jeroen Ruigrok/Asmodai Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: NSLINT and DNS configuration References: <37F74CBD.FE1EE27D@sinclairassoc.force9.co.uk> <19991004000040.F35757@daemon.ninth-circle.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jeroen, Many thanks for your reply. Yes DNS was not properly configured. I had used the outline from Chapter 4 in the DNS/BIND book and made a couple of errors. However, my final configuration differs from yours in that I already had a zone for 0.0.127.in-addr.arpa which referenced the file db127.0.0 db.127.0.0 contained: @ IN SOA sparky.at.home. root.sparky.at.home. ( ) IN NS sparky.at.home 1 In PTR localhost. ^ I also ran h2n which also gave 'localhost.' for the pointer, so I assumed this was correct. ^ (However h2n can only pick up what's in the /etc/hosts file, so this must have been wrong as well.)  I changed it to localhost (ie, 'localhost.at.home.') and nslint no longer reported any errors. Your solution interests me. If I had created an additional master zone for 1.0.0.127.in-addr.arpa it would presumably have overlapped the existing zone for 0.0.127.etc.etc and created a duplicate. I don't know if this would still have been OK, but it's the first time I've seen an example of a zone created specifically for a single address; ie, 1.0.0.127 as opposed to 0.0.127. Is this common? Jeroen Ruigrok/Asmodai wrote: > > On [19991003 14:41], Richard Morte (ric@sinclairassoc.force9.co.uk) wrote: > >Has anyone used nslint to check the dns configuration? I just used it > >and it reports the following: > > > > missing address A localhost. -> 127.0.0.1 > > missing pointer PTR localhost.at.home -> 127.0.0.1 > > 127.0.0.1 in use by localhost.at.home & localhost. > > Had this before. Definately a configuration error. > > named.conf: > > zone "1.0.0.127.IN-ADDR.ARPA" { > type master; > file "db.127.0.0.1"; > }; > > db.127.0.0.1: > > 1 IN PTR localhost.blah.org. ^^^^^^^^^^ (see my comments, above) > > db.blah.org: > > localhost IN A 127.0.0.1 ^^^^^^^^^ I also got confused here. I think I was trying to force DNS to be able to answer a query on 'localhost' as well as 'localhost.at.home', so I had two entries, one for each. I think this explains the final '127.0.0.1 in use by localhost.at.home & localhost.' message reported by nslint. > > [blah.org is fictional and only used for the example] > > >I have checked the configuration and localhost does seem to be clearly > >mapped to 127.0.0.1 and vice-versa. This seems to be confirmed by the > >final line of nslint's output. > > > >Are these "errors" due to nslint's inability to find it's way through > >the config files ( I shouldn't trust nslint's output) or has it found > >something I should investigate further (nslint is good and I've clearly > >got it wrong)? > > nslint is 99% of the time correct. Remember, computer lexers and parsers > interpret configurations aimed for computers better than humans ;) Yes, ah, yes. So many hours trying to do it manually, so little progress... Jeroen, I'm shortly to set up Apache for a local intranet using named virtual hosts. (Did it once before for FreeBSD 3.0, but never needed to use DNS). I can foresee a problem round the corner... The intranet will use the pn0 interface which is already (physically) mapped to the IP address 192.168.120.1. I can do an ifconfig to create an alias on this address, say 192.168.120.100 for Apache's use. From the perspective of DNS, will this simple be a case of adding the appropriate A and PTR records or is there something else I ought to be thinking about? By all means change the thread if you want. Many thanks, once again. Ric > > HTH, > > -- > Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl > The BSD Programmer's Documentation Project > Network/Security Specialist BSD: Technical excellence at its best > Fame is the perfume of heroic deeds. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message