Link to home
Start Free TrialLog in
Avatar of Parity123
Parity123Flag for United States of America

asked on

DNS: assistance please

Hello,

How do I retrieve all the DNS servers in the 2008r2 forest, (all the dns servers in root and all child domains)

nslookup -type=ns domain1.com

 returns only the dns servers in root

Please help.
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

You have the right idea. The correct way to accomplish this is below...

- nslookup <press enter>
- set type=NS <press enter>
- rootdomain.com <press enter>

When you are using the root domain it will give you a list of all DNS servers in the root domain and child domains as well.

Will.
Avatar of Parity123

ASKER

Is there a way to export this to a file
Just right click select Mark, highlight what you want to copy and <press enter>. Open Notepad and then paste the contents in there.

Will.
There are 300+ entries
That is still manageable. All you need to do is increase your cmd prompt window height. From there it will give you more space vertically. You increase this by doing the following...
- open cmd
- top left corner, select properties
- select layout tab
- under "Screen Buffer Size"  increase the height to like 3000

That will allow you to have plenty of scrolling space. Then proceed to copy.

Will.
One thing I noticed, in 1 forest it displays all the dns servers in all the child domains, and in the main production forest it displays only the dns servers in root domain. Any ideas.
I used the same commands as you had listed.
May be the Dns zone of the root domain is only in root domain wide and not forest wide and in the Dev forest zone that works, the devzone  is replicated forest wide to all dns servers
ASKER CERTIFIED SOLUTION
Avatar of Mike Duckett
Mike Duckett
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial