How to get easily (from a script) all CNAME of a A record?
marka at isc.org
Wed Nov 10 01:13:36 UTC 2010
In message <20101110005445.GO5441 at michelle1>, Michelle Konzack writes:
> Hello Philippe.Simonet at swisscom.com,
> Am 2010-11-09 22:16:08, hacktest Du folgendes herunter:
> > For all CNAME records, make e.g. a TXT record with the reverse result :
> > (TXT is maybe not the better record type...which ones (for specialists))
> > For each :
> > a-name IN A 126.96.36.199
> > an-alias IN CNAME a-name
> > Just add :
> > a-name IN TXT an-alias
> > and make more than one TXT records for each cname pointing to the same re=
> cord ...
> > a-name IN TXT another-alias
> I am currently testing this solution and it seems to work nicely and I
> can easyly integrate the generation of the TXT record in my PHP scripts.
> =2E..and this is very speedy!
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
Just remember that this will eventually fail when you exceed the
ability of the DNS to carry the PTR RRset (64k).
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users