kcd at chrysler.com
Thu Aug 20 17:42:07 UTC 2009
James M wrote:
> [root at mandy4 ccadns]# rpm -qa|grep bind
> 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).
More information about the bind-users