nslookup on 127.0.0.1 returns a strange message
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Mon Oct 25 12:44:37 UTC 1999
Everwhere where you want "localhost" to be just "localhost" use
"localhost." otherwise the current origin is appended.
i.e.
1 IN PTR localhost.
Mark
> I am having a weird problem with the reverse addressing on localhost one
> one of our three machines (p1.acadia.net) we use as names servers, when I
> do a nslookup on localhost it works fine but the reverse of nslookup on
> 127.0.0.1 produces some strange results. What have I done wrong here? I am
> using Bind 8.2.2 on this machine. I have included the output from the
> commands, part of my named.conf and the 2 zone files below.
> ------------------------
> nslookup localhost
> Server: p1.acadia.net
> Address: 205.217.211.1
>
> Name: localhost.acadia.net
> Address: 127.0.0.1
> ---------------------
> nslookup 127.0.0.1
> Server: p1.acadia.net
> Address: 205.217.211.1
>
> 1.0.0.127.in-addr.arpa
> origin = localhost.1.0.0.127.in-addr.arpa
> mail addr = hostmaster.localhost
> serial = 10
> refresh = 3600 (1H)
> retry = 300 (5M)
> expire = 3600000 (5w6d16h)
> minimum ttl = 3600 (1H)
> *** No address (A) records available for 127.0.0.1
> ----------------------
> The relevant section of named.conf:
>
> zone "1.0.0.127.in-addr.arpa" {
> type master;
> file "db.127.0.0";
> };
>
> zone "localhost" {
> type master;
> file "db.localhost";
> };
> -------------
> db.127.0.0 reads as follows:
>
> $TTL 86400 ; This is the NEW TTL needed for BIND 8.2
> ;
> @ IN SOA localhost hostmaster.localhost. (
@ IN SOA localhost. hostmaster.localhost. (
> 10 ; Serial
> 3600 ; Refresh
> 300 ; Retry
> 3600000 ; Expire
> 3600 ) ; Minimum
> IN NS localhost
IN NS localhost.
> ;
> 1 IN PTR localhost
1 IN PTR localhost.
> -----------------------
> db.localhost reads as follows:
>
> $TTL 86400 ; This is the NEW TTL needed for BIND 8.2
> ;
> @ IN SOA localhost hostmaster.localhost. (
@ IN SOA localhost. hostmaster.localhost. (
> 10 ; Serial
> 3600 ; Refresh
> 300 ; Retry
> 3600000 ; Expire
> 3600 ) ; Minimum
>
> IN NS localhost
IN NS localhost.
> ;
> localhost IN A 127.0.0.1
@ IN A 127.0.0.1
>
>
>
> Pancho Cole
>
> (And now, what my computer is thinking at this very moment.....)
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> I wish outer-space guys would conquer Earth and make people their pets,
> because I'd like to have one of
> those little basket-beds with my name on it.
>
>
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users
mailing list