Hi Deji,
    I was thinking about the following but the results are wrong (and I
don't understand why!):

For /F %a IN ('dsquery server -o rdn -forest') do srvinfo \\%a |find /i
"DNS Server"

Can anyone tell me what I am doing wrong?  Thanks!

Mike Thommes

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, May 17, 2006 2:19 AM
To: [email protected]
Subject: RE: [ActiveDir] how to find DNS servers in a forest?

For /F %a IN ('dsquery server -o rdn') do portqry -n %a -e 53 -i|find /i
"listening"
 
This will check if the server is listening on 53, but it won't tell you
whether its MS-DNS or not.
 

Sincerely, 
   _____                                
  (, /  |  /)               /)     /)   
    /---| (/_  ______   ___// _   //  _ 
 ) /    |_/(__(_) // (_(_)(/_(_(_/(__(/_
(_/                             /)      
                               (/       
Microsoft MVP - Directory Services
www.readymaids.com <http://www.readymaids.com>  - we know IT
www.akomolafe.com <http://www.akomolafe.com> 
Do you now realize that Today is the Tomorrow you were worried about
Yesterday? -anon
 

________________________________

From: [EMAIL PROTECTED] on behalf of Almeida Pinto,
Jorge de
Sent: Tue 5/16/2006 11:29 PM
To: [email protected]
Subject: RE: [ActiveDir] how to find DNS servers in a forest?


first thing comes to mind is using WMI and check for the DNS server
service
and that it is also started
 
Met vriendelijke groeten / Kind regards,
Ing. Jorge de Almeida Pinto
Senior Infrastructure Consultant
MVP Windows Server - Directory Services
 
LogicaCMG Nederland B.V. (BU RTINC Eindhoven)
(   Tel     : +31-(0)40-29.57.777
(   Mobile : +31-(0)6-26.26.62.80
*   E-mail : <see sender address>

________________________________

From: [EMAIL PROTECTED] on behalf of Manjeet Singh
Sent: Wed 2006-05-17 07:24
To: [email protected]
Subject: [ActiveDir] how to find DNS servers in a forest?



If I have a list of DCs in windows 2003 forest, I just want to verify if
they
have Microsoft-DNS installed on them? Where this information stored in
AD?

 

Or I want to find how many DC's have DNS Installed.

 

Thanks, Manjeet

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to