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.
Parity123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Will SzymkowskiSenior Solution ArchitectCommented:
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.
Parity123Author Commented:
Is there a way to export this to a file
Will SzymkowskiSenior Solution ArchitectCommented:
Just right click select Mark, highlight what you want to copy and <press enter>. Open Notepad and then paste the contents in there.

Will.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Parity123Author Commented:
There are 300+ entries
Will SzymkowskiSenior Solution ArchitectCommented:
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.
Parity123Author Commented:
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.
Parity123Author Commented:
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
Mike DuckettCommented:
Can you not just do:

nslookup -type=NS domainname.com > c:\temp\somefile.txt

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
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
VB Script

From novice to tech pro — start learning today.