Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I cannot list them using dig/nslookup/host.

share|improve this question
You cannot crawl an entire domain without previously knowing all its RR. For a discussion about this feature, see the work related to NSEC3 design (listed in RFC5155, section 1.1) – Manu H Oct 8 '14 at 6:50
up vote 19 down vote accepted

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

  • Perform a zone transfer (AXFR) on the domain to retrieve all records for the domain. The DNS administrator needs to explicitly allow AXFR transfers to your IP address from your chosen DNS server. You can perform such a transfer like this: dig AXFR
  • Directly view the zonefile on the relevant DNS server. You need administrator access to the DNS server for this.
share|improve this answer

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

host -t axfr | grep -i cname
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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