Find Domain Controllers

On Linux

As domain controllers are often DNS Servers, you can simply use these commands:

systemd-resolve --status | grep "DNS Servers"

Alternatively, you can use nmcli:

nmcli dev show | grep DNS

On Windows

On the same principle, use:

nslookup <domain>

Or you can use:

nltest /dclist:{domainname}

If you belong to the domain, you can use:

echo %logonserver%

Last updated