Duplicate SRV Records for a Domain Controller with Uppercase Letters in Its Name

Windows Server 2016/2019 DNS registers duplicate SRV records for DCs whose names have uppercase letters. Install the March 2020 update, keep the lowercase host names policy, remove leftovers with PowerShell, or rename the DC.

Home › Guides › Duplicate DC SRV records

Last updated 20 November 2026

Quick answer

On Windows Server 2016 and 2019 DNS, a domain controller whose computer name contains uppercase letters can end up with two of every SRV record: one with the host name in lowercase in the record data (RDATA) and one in the name's original case, for example winserv16.contoso.com and WinServ16.contoso.com (KB 4496901). The fix:

No Netlogon restart and no reboot are needed for the update, the cleanup or the policy.

Why it happens

Windows Server 2012 R2 and earlier DNS store only lowercase letters in an SRV record's RDATA and convert uppercase computer names to lowercase. Windows Server 2016 and later DNS accept both cases. When the DNS server checks whether a computer name already has an SRV record it doesn't ignore case, so winserv16.contoso.com and WinServ16.contoso.com count as different targets and both records stay. Microsoft lists three ways to get there with AD-integrated zones:

Check for duplicates

List the SRV records in the zone (Microsoft's command; contoso.com is a placeholder, run it for each zone that holds your DC locator records):

Get-DnsServerResourceRecord -ZoneName "contoso.com" -RRType Srv

A DC affected by this shows up twice for the same record name with targets that differ only in case. A quick look from any client:

nslookup -type=SRV _ldap._tcp.dc._msdcs.contoso.com

You can also inspect the containers under Forward Lookup Zones in DNS Manager (for example _msdcs and _tcp).

Fix: install the update

VersionUpdate
Windows Server 2019, version 1903March 24, 2020: KB4541335 (OS Builds 18362.752 and 18363.752)
Windows Server 2019, version 1809March 17, 2020: KB4541331 (OS Build 17763.1131)
Windows Server 2016March 17, 2020: KB4541329 (OS Build 14393.3595)

The update adds a policy to NETLOGON.ADMX:

SettingValue
Policy nameUse lowercase DNS host names when registering domain controller SRV records
Policy pathComputer Configuration\Policies\Administrative Templates\System\Net Logon\DC Locator DNS Records\
1 (default)Enabled: duplicate SRV records are purged. Installing the update makes this part of the DC's default local configuration.
0Disabled: DCs with uppercase names keep registering uppercase SRV records. Supported only for emergency or testing use.
Not configured or missingTreated as enabled
Registry (reference only)HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters, DnsSrvRecordUseLowerCaseHostNames, REG_DWORD

Check whether something has turned it off:

reg query HKLM\Software\Policies\Microsoft\Netlogon\Parameters /v DnsSrvRecordUseLowerCaseHostNames

If reg query can't find the value, that's fine: a missing value means enabled.

Clean up what the update misses

After installing the update (or re-enabling the policy), Microsoft recommends waiting a day or two for Netlogon to pick up and apply the setting, then long enough for the change to replicate, and only then looking for remaining duplicates. It says the policy is likely to miss some, and those you delete by hand:

Get-DnsServerResourceRecord -ZoneName "contoso.com" -RRType Srv
Remove-DnsServerResourceRecord -ZoneName "contoso.com" -RRType Srv -Name "<hostname of record to delete>" -RecordData "<recorddata of record to delete>"

Delete only the copy whose target has uppercase letters; the lowercase one is what the DC keeps registering. Disabling the policy later doesn't need any cleanup. Microsoft recommends the update over the workarounds below.

Workaround 1: prevent it

Workaround 2: rename the DCs in lowercase

Without the update, the only fix after the fact is renaming the DCs with all-lowercase names. Microsoft's three methods, simplest first. If anything goes wrong after a rename, it says to change the DC back to its original name.

Method 1: single-DC domain

Rename the DC in place with Microsoft's Renaming a Domain Controller procedure; no demotion needed. The netdom form (domain functional level 2003 or later):

netdom computername <CurrentComputerName> /add:<NewComputerName>
netdom computername <CurrentComputerName> /makeprimary:<NewComputerName>
(restart)
netdom computername <NewComputerName> /remove:<OldComputerName>

Both names are fully qualified, and the new name's primary DNS suffix has to match the old one (or the AD domain's DNS name, or an allowed suffix in msDS-AllowedDNSSuffixes). netdom updates the computer account's SPNs and registers DNS records for the new name. Microsoft also strongly recommends having at least two DCs in every domain.

Method 2: multi-DC domain

For each affected DC: demote it and clean up its metadata, rename the computer in lowercase, and promote it again. When all the DCs are back, the mixed-case SRV records should be gone. If demotion fails, see DC demotion fails (force removal and metadata cleanup).

Method 3: rename and remove all stored SRV records

If methods 1 and 2 don't clear them, for each affected DC:

  1. Demote it and clean up its metadata.
  2. On the demoted computer, rename it in lowercase and stop Netlogon: net stop netlogon.
  3. Delete netlogon.dnb and netlogon.dns from C:\Windows\System32\config\.
  4. On another DC, open DNS Manager and delete the demoted DC's SRV records under Forward Lookup Zones.
  5. On the renamed computer, net start netlogon, then promote it again.

Related tools and guides

Look up NETLOGON events 5774 and 5781 in the Windows Event ID Lookup, copy the Get-DnsServerResourceRecord, nslookup -type=SRV and netdom computername lines from the PowerShell Cheat Sheet, match SRV record targets that contain uppercase letters with the Regex Tester, check the DC addresses in the SRV targets against your site subnets with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on a DC that registers unexpected records with the MAC Vendor Lookup. Related guides: Netlogon events 5774 and 5781 (DNS registration failed), replication error 8524, DC demotion fails and common AD replication errors.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

Why does DNS show two SRV records for the same domain controller?

On Windows Server 2016 and later DNS, SRV record data keeps the case of the computer name, and the duplicate check doesn't ignore case. A DC named WinServ16 can end up with records for both winserv16.contoso.com and WinServ16.contoso.com, especially after upgrading from 2012 R2.

Which update fixes duplicate DC SRV records?

The March 2020 updates: KB4541329 for Windows Server 2016, KB4541331 for Windows Server 2019 version 1809 and KB4541335 for version 1903. They add a policy that makes DCs register lowercase host names and purge the duplicates.

What does the DnsSrvRecordUseLowerCaseHostNames value do?

It is the registry value behind the policy Use lowercase DNS host names when registering domain controller SRV records. 1 or missing means enabled, so duplicates are purged; 0 disables it and is supported only for emergency or testing use.

Do I have to delete the duplicate records by hand?

Maybe a few. Netlogon makes a best-effort attempt to remove the uppercase records once the update is installed. Wait a day or two plus replication time, list the records with Get-DnsServerResourceRecord and delete leftovers with Remove-DnsServerResourceRecord.

Should I rename my domain controllers to lowercase?

Microsoft recommends the update instead. Renaming is the workaround without it: rename in place in a single-DC domain, or demote, rename and re-promote each DC in a multi-DC domain. For new DCs, use lowercase names before promotion.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.