Wednesday, August 20, 2014

How to Learn the IP Address of Your Active Directory Server

Recently I needed to learn the IP address of our active directory server(s). I wanna share how I learnt it/them.

First open your command shell. (cmd.exe) Then type the following: (I masked our IP addresses below of course where you will see some X's, Y's or Z's or some combination of letters.)
C:\Windows\system32> nslookup
Default Server: xyzt.abc.local
Address:  10.xxx.yyy.zzz

> {This prompt is where you will/can do some DNS queries}
> set type=all
_ldap._tcp.dc._msdcs.abc.local {abc.local is the name of our domain}

The output will be the following:

Server:  xyzt.abc.local
Address:  10.xxx.yyy.zzz

_ldap._tcp.dc._msdcs.abc.local      SRV service location:
          priority       = 0
          weight         = 100
          port           = 389
          svr hostname   = server1.abc.local
_ldap._tcp.dc._msdcs.abc.local      SRV service location:
          priority       = 0
          weight         = 100
          port           = 389
          svr hostname   = server2.abc.local
_ldap._tcp.dc._msdcs.abc.local      SRV service location:
          priority       = 0
          weight         = 100
          port           = 389
          svr hostname   = server3.abc.local
_ldap._tcp.dc._msdcs.abc.local      SRV service location:
          priority       = 0
          weight         = 100
          port           = 389
          svr hostname   = server4.abc.local

{Below are the names and IP addresses of our active directory servers}

server1.abc.local   internet address = 10.xxx.yyy.zzx
server2.abc.local   internet address = 10.xxx.yyy.zzy
server3.abc.local   internet address = 10.xxx.yyy.zzz
server4.abc.local   internet address = 10.xxx.yyy.zzt
Four server are listed after executing the command because it seems that we have four active directory servers in our company. This also a new information for me =) )

No comments:

Post a Comment