How to a dig -x to return A records and CNAMES

Beast adamnealis at yahoo.co.uk
Tue Dec 20 20:04:36 UTC 2005


Hi,

If this is a FAQ I apologise, but I couldn't find an example.

I have a "forward" domain mydom.net, in which I have an A record and a
CNAME like this.

tc23.test.mydom.net. 1800  IN      CNAME   sol41.mydom.net.
sol41.mydom.net.       1800    IN      A       10.144.114.170

I have corresponding PTRs in another zone file:

170.114.144.10 IN   PTR  sol41.mydom.net.
170.114.144.10 IN   PTR  tc23.test.mydom.net.

So when I dig, I get

$ dig +short -x 10.144.114.170
tc23.test.mydom.net.
sol41.mydom.net.

Which is cool, but a chore to maintain as I have to add PTRs for A
records and CNAMEs.

Is there a way to configure things such that one need only add a PTR
for the A record and the dig above returns both A and CNAMEs?

Thanks,
Adam Nealis.



More information about the bind-users mailing list