logo       

Re: GC list: msg#01199

Subject: Re: GC list
Since no one has mentioned, I will put extra one...

I am a fan of DS* commands...so

To find all DCs in forest
dsquery server -forest -o rdn

To find all GC in forest
dsquery server -forest -isgc -o rdn

--
Kamlesh

On 11/30/05, Tomasz Onyszko <t.onyszko@xxxxxx> wrote:
Harding, Devon wrote:
> What's the easiest way to get a list of ALL my DC's and GC's in my
> forest along with IP address?

Quickest way will be to use nslookup:

nslookup -q=SRV _ldap._tcp.dc._msdcs.<domain> - for DCs
nslookup -q=SRV _ldap._tcp.gc._msdcs.<domain> - for GCs


--
Tomasz Onyszko
http://www.w2k.pl
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/



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Fortune and Love befriend the bold"
~~~~~~~~~~~~~~~~~~~~~~~~~~~
<Prev in Thread] Current Thread [Next in Thread>