lookup cnames

Kevin Darcy kcd at chrysler.com
Thu Aug 20 17:42:07 UTC 2009

James M wrote:
> [root at mandy4 ccadns]# rpm -qa|grep bind
> bind-utils-9.3.2-7.4.20060mlcs4
> bind-9.3.2-7.4.20060mlcs4
> I've tried but cannot find an option to return cname records for a given host.
> I did find dig and host command options that allows entering a cname
> with the result being the host that owns that cname.
> I need the opposite - enter host and return all the cnames for that host.
> Is there a way using dig or host? or something else (besides axfr and grep)
> _______________________________________________
No, the protocol does not support a general "all CNAMEs pointing to a 
given name" lookup function.

Even if it did, it would only work for CNAMEs in the zone(s) for which 
the target server was authoritative. There's no way to know whether some 
arbitrary admin has put a CNAME at some hierarchy level in some 
arbitrary zone, pointing to one of your Internet-advertised names (or 
even a non-Internet-advertised one, for that matter).

- Kevin

More information about the bind-users mailing list