nslookup on 127.0.0.1 returns a strange message

Joseph S D Yao jsdy at cospo.osis.gov
Mon Oct 25 18:32:05 UTC 1999


>   nslookup 127.0.0.1
> Server:  p1.acadia.net
> Address:  205.217.211.1
> 
> 1.0.0.127.in-addr.arpa

First clue.  Network name should be "0.0.127.in-addr.arpa".  You seem
to be confusing the full name with the containing domain name.

>          origin = localhost.1.0.0.127.in-addr.arpa

Second set of clues.  Extended domain name, plus "localhost" has the
domain name appended.

>          mail addr = hostmaster.localhost

Ah, but no domain name appended here.  Why not?  ;-)

...
> zone "1.0.0.127.in-addr.arpa" {

Should be zone "0.0.127.in-addr.arpa".

...
> zone "localhost" {

You shouldn't really have a zone "localhost".  In your primary zone
file - e.g., in db.acadia.net - you have "localhost" defined.  That
will suffice.  This zone defines a "localhost.localhost" FQDN.  Totally
unnecessary.

...
> -------------
> db.127.0.0 reads as follows:
...
> @       IN      SOA     localhost hostmaster.localhost. (

This does not give good addresses for either.  [However, note that the
question above is answered by observing that you have a "." appended to
the second "localhost", but not the first.]  Suggest instead:

@	IN	SOA	p1.acadia.net. hostmaster.acadia.net. (

>                IN      NS      localhost

Again,
		IN	NS	p1.acadia.net.
		IN	NS	p1.acadia.net.

> 1       IN      PTR     localhost

1	IN	PTR	localhost.
	_OR_
1	IN	PTR	localhost.acadia.net.

> -----------------------
> db.localhost reads as follows:

As mentioned, trash it.  ;-)

--
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
	PLEASE ... send or Cc: all "COSPO/OSIS Computer Support"
		     mail to sys-adm at cospo.osis.gov
-----------------------------------------------------------------------
      This message is not an official statement of COSPO policies.


More information about the bind-users mailing list