How do you display all A records for a domain?

I need to find out all public DNS records for a domain.  I have tried several differnt sites that have tools but I cannot seem to be able to get all records for a particular domain.  Say I need to get all the records for how would i do that without already knowing the host names.  If I query for the host name it returns the record but if  i query for all records for I get the name of their names servers and that is it.
Who is Participating?
litmuslogicConnect With a Mentor Commented:
Jd, have you tried using reverse lookups.  For example, let's say I know that translates to (for example)  Well, if I nslookup, it will resolve (if DNS is configured correctly) to  So now, I could write a shell script, or a command script, very easy, that will loop through and do the reverse lookups.  This is a bit brute force, and of course you'd never know if you have the information for the entire zone, but you might get a lot of hits.
I'm pretty sure the answer that applies to you is "you can't." DNS servers aren't typically set up this way for security reasons.

You can try the following:

host -al

The first argument is the domain you are trying to look up. is the dns server for the domain you are looking up. Most likely, you are going to get an error like "Transfer failed" because you do not have permission.
Chris DentPowerShell DeveloperCommented:

> I'm pretty sure the answer that applies to you is "you can't."

I want to support that one :)

You can't I'm afraid.

Permission to list all records requires permission to transfer the zone. You will find very very few servers that permit that kind of operation against zones they're authoritative for.

jdfloryAuthor Commented:
Thanks alot guys,

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.