bind 9.4.1 query for localhost
Adam Tkac
atkac at redhat.com
Wed May 30 13:03:35 UTC 2007
Jeff Stevens napsal(a):
> 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.
>
> 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.ver
> 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;
> };
>
>
http://www.isc.org/sw/bind/arm94/Bv9ARM.ch06.html could help you. Please
see "Built-in Empty Zones" and "empty-zones-enable" sections. If you
have set "empty-zones-enable no" and have configured
0.0.127.in-addr.arpa. with PTR record and don't have localhost. with IN
A record dig says that reverse mapping is configured and IN isn't.
Regards, Adam
Regards, Adam
More information about the bind-users
mailing list