Domain Controllers

This details various different techniques and methods required to enumerate domain controllers within Active Directory.

Enumerate all domain controllers

Get all domain controllers inside the domain corp.contoso.local

C:\> nltest /dclist:corp.contoso.local
C:\> nslookup -type=all _ldap._tcp.dc._msdcs.corp.contoso.local
C:\> net group "domain controllers" /domain

Which domain controller authenticated my session?

C:\>echo %LOGONSERVER%
C:\> nltest /dsgetdc:corp.contoso.local

Last updated