When it is written
The DNS Server service writes 541 to its audit log (Microsoft-Windows-DNSServer/Audit) each time a server-level setting of the DNS server is changed, with the setting's name in Setting, its scope in Scope and the new value in NewValue. Microsoft's audit event table names it Server setting, in the Configuration category, at the Informational level, and the event template agrees (task Configuration, level Information). Zone settings have their own event (514), and several server settings have dedicated events, among them forwarders (537), root hints (540) and listen addresses (557).
The audit log is on by default from Windows Server 2016 (on Windows Server 2012 R2 once hotfix KB2956577 is installed) and exists on every server that runs the DNS Server role, in most domains the domain controllers.
For identity security, the setting that matters is ServerLevelPluginDll: the path of a plug-in library whose functions the DNS server calls for names outside its own zones. Members of DnsAdmins, a domain local group that Microsoft describes as having administrative access to the DNS Server service, can change it. A 541 that sets it to a path, on a DNS server that is not meant to use a plug-in, is the configuration step of the DnsAdmins plug-in abuse. The library's hypothesis looks for a restart of the service on the same server soon after (548 when the DNS server receives the request), and DNS Server event 770 (the library was loaded) or 150 (it failed to load) follows. The event data names no account: the template has no field for who made the change.
How to turn it on
Microsoft-Windows-DNSServer writes the event to the DNS Server audit log (Event Viewer > Applications and Services Logs > Microsoft > Windows > DNS-Server > Audit), which is on by default. Microsoft
Microsoft states that the DNS Server audit log is enabled by default and does not significantly affect DNS server performance. It is part of enhanced DNS logging and diagnostics: built into Windows Server 2016 and later, and on Windows Server 2012 R2 only once the query logging and change auditing hotfix KB2956577 is installed. The analytic log next to it is a different channel, off by default, with an event for every packet the server sends or receives; the events of this library do not need it.
Being on by default, the log can still have been turned off. The commands below check it and turn it back on. Collectors forward it by its channel name, Microsoft-Windows-DNSServer/Audit.
wevtutil gl "Microsoft-Windows-DNSServer/Audit"wevtutil sl "Microsoft-Windows-DNSServer/Audit" /e:trueThe DNS Server audit log is on by default; the commands of the log check that it still is. Microsoft notes that the DNS Server service reads its registry entries when it starts, so a value written straight to the registry takes effect only after a restart of the service. Audit event 548 records a restart request that the DNS server receives; a restart by other means, such as a reboot, is not described as writing it.
Check the plug-in setting directly as well: (Get-DnsServerSetting -All).ServerLevelPluginDll is empty in Microsoft's example of a server without a plug-in, and dnscmd /info /serverlevelplugindll reads the same setting from the DNS server's registry parameters.
Fields
In Event Viewer order. The field names are those of the event XML, from the event template of Windows Server 2025 (build 26100.32230, January 13, 2026): the provider belongs to a server role, so the template comes from the provider manifests that the EVTX-ETW-Resources project exported from that release.
| Field | What it holds | Since |
|---|---|---|
Setting | Name of the server setting that was changed (%1 in the event text), such as ServerLevelPluginDll; an ANSI string in the template. Microsoft does not document which spelling the event uses, so compare without regard to case. | v0 |
Scope | Scope of the setting (%2). DNS servers have scopes of their own, such as recursion scopes, whose default, named dot (.), holds the server's legacy recursion settings; Microsoft does not document the value the event writes for a setting of the whole server, so the sample's . is an assumption. | v0 |
NewValue | The new value of the setting (%3). For ServerLevelPluginDll, the path of the plug-in library, or nothing when the plug-in is removed. | v0 |
Values to know
Setting
| Value | Meaning | Signal |
|---|---|---|
ServerLevelPluginDll | The path of the DNS server's plug-in libraryThe setting the DnsAdmins abuse changes. A change on a server that uses no plug-in is high severity. | Attack signal |
Any other server setting | Ordinary DNS administrationMatch it to a change record. The library's rule reports these at a low level. | Expected |
NewValue
| Value | Meaning | Signal |
|---|---|---|
A local path to a DLL | A plug-in library on the serverUnless it is the documented path of a plug-in a product you run installs. | Attack signal |
A network path | A plug-in library on a remote shareThe most urgent form. | Attack signal |
Empty | No plug-inMicrosoft's dnscmd reference says that without a path the DNS server stops using a custom plug-in; this is what clearing the setting produces. Microsoft does not show how the event renders an empty value. | Expected |
Volume and noise
Server-level settings change during planned DNS administration, such as the recursion, logging or scavenging settings that dnscmd /config and the DNS management tools set, and each change writes one 541. Zone and record changes, the busy part of the audit log, have events of their own. A change of the plug-in setting is not routine on a DNS server that uses no plug-in.
Keeping it manageable
- Keep every 541: the library's rule matches every server setting change at a low level, because the event's
Settingfield is not yet mapped for its SIEM conversions, and the volume is low. - Raise the severity in the SIEM when
SettingisServerLevelPluginDll(compare without regard to case: Microsoft does not document which spelling the event writes) andNewValueis a path, above all a network path. - Collect the audit channel by name (
Microsoft-Windows-DNSServer/Audit) from every DNS server: collectors set up only for the Windows Logs miss it. Where volume is the limit, an XPath filter keeps what the plug-in rules and hypothesis need:Microsoft-Windows-DNSServer/Audit!*[System[(EventID=541 or EventID=548)]]. - Match each 541 to a change record. Microsoft does not say whether the event is written when a setting is changed in the DNS server's registry rather than through its management interface, so also check the plug-in setting itself on every DNS server.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-DNSServer" Guid="{EB79061A-A566-4698-9119-3ED2807060E7}" />
<EventID>541</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>10</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000008000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Microsoft-Windows-DNSServer/Audit</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="Setting">ServerLevelPluginDll</Data>
<Data Name="Scope">.</Data>
<Data Name="NewValue">C:\Program Files\Example\DnsPlugin\exampleplugin.dll</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
How do I detect a ServerLevelPluginDll change in the DNS Server logs?
Collect DNS audit event 541 from every DNS server and look at its Setting field: a 541 whose Setting is ServerLevelPluginDll and whose NewValue is a path, on a server that is not meant to use a plug-in, is the change to act on. Look on the same server for a request to restart the DNS service (548) and for DNS Server event 770 or 150 soon after, and check the setting directly with Get-DnsServerSetting.
Does event 541 show who changed the DNS setting?
Not in its event data: the template has three fields, the setting, the scope and the new value, and none for an account, and Microsoft does not document whether the event's System section carries the user. To find who changed the plug-in setting, look at who holds DnsAdmins or administrative rights on the DNS server, their sign-ins to it, and, where a SACL audits the DNS server's registry parameters, event 4657.
Is the DNS Server audit log enabled by default?
Yes. Microsoft states that DNS audit logs are enabled by default and do not significantly affect DNS server performance. They are built into Windows Server 2016 and later; Windows Server 2012 R2 needs the hotfix KB2956577. The analytic log, with an event per packet, is a different channel that is off by default.
Does the November 2026 DNS update stop DnsAdmins from setting a plug-in?
Microsoft's November 2026 change makes the DNS debug log path a setting that only local administrators of the DNS server can change; members of DnsAdmins who are not local administrators are refused. Microsoft's description of the change does not mention the plug-in setting, so keep watching 541 for it and keep DnsAdmins limited to accounts protected like domain administrators.
References
- Enable DNS logging and diagnostics, audit events (Microsoft)
- DNS Logging and Diagnostics for Windows Server 2012 R2, hotfix KB2956577 (Microsoft)
- Dnscmd, the /serverlevelplugindll setting and /info (Microsoft)
- Get-DnsServerSetting (Microsoft)
- Add-DnsServerRecursionScope, the default recursion scope (Microsoft)
- How to enable or disable DNS updates in Windows, DNS Server registry entries read at start (Microsoft)
- Appendix B: Privileged accounts and groups in Active Directory, DnsAdmins (Microsoft)
- Collect Windows events with Azure Monitor Agent (Microsoft)