Why 'host' doesn't folow CNAME?

Vadim Chekan vadim at gc.lviv.ua
Fri Oct 15 10:38:45 UTC 1999


Hello everybody.

When I tested my DNS server which use RFC-2317 (Classless
IN-ADDR.ARPA delegation) I noted very stange thing:
========================================
bash-2.03$ host 212.109.34.132
132.34.109.212.IN-ADDR.ARPA is a nickname for
132.34.109.212.cscd.lviv.ua
========================================

But host from 4.9 bind find name extra.gc.lviv.ua

========================================
bash-2.02$ host 212.109.34.132
Name: extra.gc.lviv.ua
Address: 212.109.34.132
Aliases:

bash-2.02$
========================================

Doung output of host from 8.1.2 bind

========================================
host -d -v 212.109.34.132
;; res_mkquery(0, 132.34.109.212.IN-ADDR.ARPA., 1, 12)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30587
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;      132.34.109.212.IN-ADDR.ARPA, type = PTR, class = IN
;; Querying server (# 1) address = 195.5.56.19
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30587
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;;      132.34.109.212.IN-ADDR.ARPA, type = PTR, class = IN
132.34.109.212.IN-ADDR.ARPA.  9h25m52s IN CNAME 
132.34.109.212.cscd.lviv.ua.
132.34.109.212.cscd.lviv.ua.  14h37m49s IN PTR  extra.gc.lviv.ua.
cscd.lviv.ua.           23h31m46s IN NS  ns.cscd.lviv.ua.
cscd.lviv.ua.           23h31m46s IN NS  ns.lviv.gu.net.
ns.cscd.lviv.ua.        23h31m46s IN A  195.5.56.1
ns.lviv.gu.net.         11h38m41s IN A  195.123.17.1
rcode = 0 (Success), ancount=2
The following answer is not authoritative:
132.34.109.212.IN-ADDR.ARPA     33952 IN        CNAME  
132.34.109.212.cscd.lviv.ua
132.34.109.212.cscd.lviv.ua     52669 IN        PTR     extra.gc.lviv.ua
For authoritative answers, see:
cscd.lviv.ua    84706 IN        NS      ns.cscd.lviv.ua
cscd.lviv.ua    84706 IN        NS      ns.lviv.gu.net
Additional information:
ns.cscd.lviv.ua 84706 IN        A       195.5.56.1
ns.lviv.gu.net  41921 IN        A       195.123.17.1
================================================================

It has all information necessary to sucessful resolving.
132.34.109.212.IN-ADDR.ARPA.  9h25m52s IN CNAME
132.34.109.212.cscd.lviv.ua.
132.34.109.212.cscd.lviv.ua.  14h37m49s IN PTR  extra.gc.lviv.ua.
                                                ^^^^^^^^^^^^^^^^^ here's
the ansver!

Why 'host' from 8th bind doesn't belive that IN PTR  extra.gc.lviv.ua is
the right ansver?

Vadim Chekan.


More information about the bind-users mailing list