Bind 9: localhost. not found: 3(NXDOMAIN)

Bob Vance bobvance at
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, being   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

In fact, I've done exactly that in some of my configs, just to be

linux1# nslookup.orig bobvl
Server:  xxyyzz.foboid     <=========== note garbage name  :)

Name:    bobvl.dynamic.vance
Address:     <========= yet it found the address ;>)
Aliases:  bobvl.vance

However, what you've done should satisfy older 'nslookup's just fine.

Tks        | <mailto:BVance at>
BV         | <mailto:BobVance at>
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 [mailto:bind-users-bounce at]On
Behalf Of Philipp E. Imhof
Sent: Saturday, March 31, 2001 3:47 PM
To: comp-protocols-dns-bind at
Subject: Bind 9: localhost. not found: 3(NXDOMAIN)


I just installed Bind 9.1.1 and after some problems it really works
for now.

The zone "" is defined in a text file as
described in the howto. It contains the following:

@     IN      SOA (
              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.


More information about the bind-users mailing list