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?

Ta
LVL 1
anetworkAsked:
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
<domain>

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 :)
0

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
j2Commented:
...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.
0
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 :)
0
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:
DaveHowe,

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

Adrian
0
lrmooreCommented:
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.

C:\>nslookup
DNS request timed out.
   timeout was 2 seconds.
*** Can't find server name for address 207.230.75.222: Timed out
Default Server:  cache02.ns.uu.net
Address:  198.6.1.3

> ls -d cisco.com
[cache02.ns.uu.net]
*** 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:
http://www.netliner.com/dig.html

0
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.
0
anetworkAuthor Commented:
It's the 'ls -d' that is the key to it.  

Thanks
0
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
Networking

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.