Bind 9: localhost. not found: 3(NXDOMAIN)
Bob Vance
bobvance at alumni.caltech.edu
Sat Mar 31 23:17:54 UTC 2001
Well, the
$ host localhost
is a "forward" lookup, looking for an A record for "localhost.domain" ,
whatever your domain is set for.
So, you don't have a *forward* record "localhost..." --> IPaddress
defined anywhere for 'host' to find.
What you defined was a *reverse* lookup RR -- the PTR.
This reverse lookup for 127.0.0.1, being
1.0.0.127.in.addr.arpa. IN PTR
is just to satisfy a stupid requirement of 'nslookup'
(version older than 9 -- this will be the case for
almost all your vendors' versions of 'nslookup'.
)
In fact, 'nslookup' is so stupid about this "requirement" that he
doesn't care *what* the actual reverse name is -- just so long as it's
there.
In fact, I've done exactly that in some of my configs, just to be
contrary:
linux1# nslookup.orig bobvl
Server: xxyyzz.foboid <=========== note garbage name :)
Address: 127.0.0.1
Name: bobvl.dynamic.vance
Address: 192.168.1.23 <========= yet it found the address ;>)
Aliases: bobvl.vance
However, what you've done should satisfy older 'nslookup's just fine.
-------------------------------------------------
Tks | <mailto:BVance at sbm.com>
BV | <mailto:BobVance at alumni.caltech.edu>
Sr. Technical Consultant, SBM, A Gates/Arrow Co.
Vox 770-623-3430 11455 Lakefield Dr.
Fax 770-623-3429 Duluth, GA 30097-1511
=================================================
-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
Behalf Of Philipp E. Imhof
Sent: Saturday, March 31, 2001 3:47 PM
To: comp-protocols-dns-bind at moderators.isc.org
Subject: Bind 9: localhost. not found: 3(NXDOMAIN)
Hi!
I just installed Bind 9.1.1 and after some problems it really works
for now.
The zone "0.0.127.in-addr.arpa" is defined in a text file as
described in the howto. It contains the following:
$TTL 3D
@ IN SOA host.name. hostmaster.host.name. (
200103311
8H
2H
4W
1D)
NS host.name.
NS another.dnsserver.
1 PTR localhost.
When I enter
$ host localhost
linux tells me: "localhost. not found: 3(NXDOMAIN)".
I do not understand this error. Can anyone help me? Thanks.
Philipp
More information about the bind-users
mailing list