bind 9.4.1 query for localhost

Mark Andrews Mark_Andrews at isc.org
Wed May 30 14:19:32 UTC 2007


> When doing localhost queries (with "empty-zones-enable no"), should we get 
> a
> response for "localhost" or not?  I wasn't sure if it was a built-in name. 
>  I do
> have a reverse zone setup as follows and did all queries on the same box so
>  as
> to be local.

	No. localhost is not built in.
 
> The A query for localhost gives NXDOMAIN although the reverse query for
> 127.0.0.1 returns "localhost" for the answer.
> 
> 
> ; <<>> DiG 9.4.1.i5/OS.V5R5M0 <<>> -x 127.0.0.1 @9.5.176.194 @9.5.176.200 @
> 9.
> 10.244.200
> ; (1 server found)
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 423
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;1.0.0.127.in-addr.arpa.                IN      PTR
> 
> ;; ANSWER SECTION:
> 1.0.0.127.in-addr.arpa. 86400   IN      PTR     localhost.
> 
> ;; AUTHORITY SECTION:
> 0.0.127.in-addr.arpa.   86400   IN      NS      ISA2LP05.RCHLAND.IBM.COM.
> 
> ;; Query time: 304 msec
> ;; SERVER: 9.5.176.194#53(9.5.176.194)
> ;; WHEN: Wed May 30 07:22:17 2007
> ;; MSG SIZE  rcvd: 101
> 
> 
> 
> ; <<>> DiG 9.4.1.i5/OS.V5R5M0 <<>> -q localhost @9.5.176.194 @9.5.176.200 @
> 9.
> 10.244.200
> ; (1 server found)    ;; global options:  printcmd
> 
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 904
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> 
> 
> ;; QUESTION SECTION:
> ;localhost.                     IN      A
> 
> ;; AUTHORITY SECTION:
> .                       4556    IN      SOA     a.root-servers.net. nstld.v
> er
> isign-grs.com. 2007052901 1800 900 604800 86400
> 
> ;; Query time: 249 msec
> ;; SERVER: 9.5.176.194#53(9.5.176.194)
> ;; WHEN: Wed May 30 07:23:09 2007
> ;; MSG SIZE  rcvd: 102
> 
> 
> 
> 
> zone "0.0.127.in-addr.arpa" {
>      type master;
>      file "0.0.127.in-addr.arpa.db";
>      check-names ignore;
>      database rbt;
>      dialup no;
>      zone-statistics no;
>      max-transfer-idle-out 60;
>      max-transfer-time-out 120;
>      notify yes;
>      zero-no-soa-ttl yes;
>      allow-query {
>           localnets;
>      };
>      allow-update {
>           localnets;
>      };
>      check-integrity yes;
>      check-mx warn;
>      check-wildcard yes;
> };
> 
> -- 
> Jeffrey Stevens
> gpg --keyserver pgp.mit.edu --recv-keys D2E5A4E8
> Key fingerprint: 1C86 8717 E485 FA4D B9EF 96E2 A1AC 4B00 D2E5 A4E8
> 
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list