DNS - dump of all info

Posted on 2003-03-10
Medium Priority
Last Modified: 2008-03-17
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?

Question by:anetwork
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 33

Accepted Solution

Dave Howe earned 150 total points
ID: 8102669
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 :)
LVL 12

Expert Comment

ID: 8102734
...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.
LVL 33

Expert Comment

by:Dave Howe
ID: 8109799
j2: yeah. however, this guy has asked the question twice, so I split that bit of the answer onto the other question :)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 8112721

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

LVL 79

Expert Comment

ID: 8112740
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:

LVL 33

Expert Comment

by:Dave Howe
ID: 8113270
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.

Author Comment

ID: 8113955
It's the 'ls -d' that is the key to it.  


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This program is used to assist in finding and resolving common problems with wireless connections.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question