Search This Blog

Wednesday, September 1, 2021

[Ubuntu]查詢Windows AD Server的IP Address(Find out IP Address of Windows AD Server)

$ nslookup

> server YOUR_LOCAL_DNS_SERVER_IP (EX: 192.168.1.1)

Default server: 192.168.1.1
Address: 192.168.1.1#53
 

> set type=any

> _ldap._tcp.dc._msdcs.DOMAIN_NAME (EX:abc.com.local)

Server:        192.168.1.1
Address:    192.168.1.1#53

_ldap._tcp.dc._msdcs.abc.com.local    service = 0 100 389 ad02.abc.com.local.
 

> ad02.abc.com.local

Server:        192.168.1.1
Address:    192.168.1.1#53

Name:    ad02.abc.com.local
Address: 192.168.1.30

Reference:https://www.tecknowledgebase.com/6383/how-you-can-find-out-the-name-and-ip-address-of-the-ad-domain-controller-on-your-network/

No comments: