# Find Domain Controllers

## On Linux

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

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

Alternatively, you can use nmcli:

```bash
nmcli dev show | grep DNS
```

## On Windows

On the same principle, use:

```bash
nslookup <domain>
```

Or you can use:

```bash
nltest /dclist:{domainname}
```

If you belong to the domain, you can use:

```bash
echo %logonserver%
```
