Solved

Export list of name servers

Posted on 2010-11-18
3
1,167 Views
Last Modified: 2012-05-10
We have 14 DNS zones, each with a list of 20 - 30 name servers in the zone properties. I need to list all of the name servers for each DNS zone, so we can try to clear out some of the legacy servers.

Is there a quick way to export the name servers list, without having to go through each one on the list, and copy & paste it individually into a text file?
0
Comment
Question by:bjblackmore
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
Rich Weissler earned 500 total points
Comment Utility
Create a text file with the following contents:
set type=NS
<zone1>
<zone2>
.
.
.
<zone14>
exit

from the CMD prompt, "nslookup <filename >outputtxtfile.txt"

Does that give you what you were looking for?
0
 
LVL 29

Expert Comment

by:Rich Weissler
Comment Utility
And just to make certain the command line syntax is clear...  you are redirecting in with '<' the commands to nslookup, and you are getting the output to a text file via the redirector '>'.
For my test here, I created a file called temp.txt and put the set type command and zone list in... so when I ran the command, it looked like this:
nslookup <temp.txt >output.txt
0
 

Author Comment

by:bjblackmore
Comment Utility
Hi,

Yes just ran it, and it worked perfectly! One thing I did notice was the number, and order of the nameserver list, and internet address don't always match. i.e.

uk.domain.com nameserver = ns01.uk.net
ns01.uk.net      internet address = 10.0.0.20

My first zone had 54 name server records, but only 50 IP addresses, and the order didn't match. owever this isn't important, as I'm only interested in the name server names, not IP addresses, but it's worth noting!

Many thanks, you have saved me many laborious hours of copy & pasting!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now