I cannot list them using dig/nslookup/host.

link|improve this question
feedback

2 Answers

up vote 8 down vote accepted

There are two ways, both require administrator access or trust to the DNS records:

  • Perform an AFXR transfer on the domain to retrieve all records for the domain. The DNS administrator needs to explicitly allow AFXR transfers to your IP address from your chosen DNS server. You can perform such a transfer like this: dig @ns1.google.com google.com AFXR
  • Directly view the zonefile on the relevant DNS server. You need administrator access to the DNS server for this.
link|improve this answer
feedback

With proper permissions on the DNS, grep for cname records:

host -t axfr my.dom.com dns.my.dom.com | grep -i cname
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.