How to get easily (from a script) all CNAME of a A record?

Michelle Konzack linux4michelle at tamay-dogan.net
Tue Nov 9 13:01:24 UTC 2010


Hello *,

does someone know, how to get easily all CNAME records for a Host?

For example I have:

vserver09.tamay-dogan.net.  604800  IN A        88.168.69.36

www.can4linux.org.           86400  IN CNAME    vserver09.tamay-dogan.net.
www.fexray4linux.org.        86400  IN CNAME    vserver09.tamay-dogan.net.

So I have only the <vserver09> and want to know from a script the CNAMEs
which mean, I need a revers search.

How can I query this and which is the best (shell) tool?

I mean, currently I have a spider script installed on the NS which I can
run using 'ssh ${NS} query_script ${OPTS}' and on STDOUT I have  what  I
need, but I like to get a better solution, since sometimes  it  dos  not
work with DNSSEC and with more then 80000 Domains and more than 1million
hosts I run into timing problems.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems at tdnet France EURL       itsystems at tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle at jabber.ccc.de

Linux-User #280138 with the Linux Counter, http://counter.li.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.pgp
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20101109/7eb72023/attachment.bin>


More information about the bind-users mailing list