Comment on page
Find Domain Controllers
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 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 modified 4yr ago