DNS - dump of all info

How can I dump ALL of the domain info (A records, PTR records, MX records etc) for a particular domain, using nslookup, from either an Internet DNS server or a W2K DNS server?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave HoweSoftware and Hardware EngineerCommented:
first, find an authorative server for the domain:

set q=mx

then, set nslookup to read from that server and perform a zone transfer:

server <authorative server>
ls -d <domain>

alternatively, you can use the free Sam Spade tool to perform zone transfers from the comfort of a gui :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
...and of course, if this is not your own domain, chanses are good that the admin has blocked the possibility of zone transfers, in which case you can not do a "complete dump" of the zone at all.
Dave HoweSoftware and Hardware EngineerCommented:
j2: yeah. however, this guy has asked the question twice, so I split that bit of the answer onto the other question :)
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

anetworkAuthor Commented:

Is 'ls -d' a complete dump?  Would I know if any records have been left out?

here is an example. Most companies do block the listing of their hosts by outside entities for security purposes. If it is your own servers, this should work.

DNS request timed out.
   timeout was 2 seconds.
*** Can't find server name for address Timed out
Default Server:  cache02.ns.uu.net

> ls -d cisco.com
*** Can't list domain cisco.com: Query refused

You might be able to use Dig to get what you want. Dig or Domain Information Groper is similar in functionality to NSLOOKUP, however, it provides much more detailed information. http://www.netscantools.com/nstpro_nslookup.html:

Dave HoweSoftware and Hardware EngineerCommented:
its the same dump a slave DNS server would get - ie, all the data is there, but it is not guaranteed to be in any particular order and all the comments that were in the db file (if any) are gone.
anetworkAuthor Commented:
It's the 'ls -d' that is the key to it.  

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

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.