Domain Controller SRV Records remain after DC Demotionn

Dane Briggs 281 Reputation points
2022-03-16T16:56:31.52+00:00

I have a client that has an issue with SRV records being not removed after a Domain Controller is demoted. I have to manually search through all sites, _tcp, _udp, etc and manually delete the SRV records. Additionally after I removed some unused sites in AD Sites and Services, they were partially removed from DNS. There are no errors during demotion, no related errors in DCDIAG and no replication errors. The client's DNS is setup different than I normally set them up but should be fine.

They have 2 zones (both Active Directory Replicated Zones)
contoso.com (all host records, srv records, sites etc) - SRV records are left after DC demotion. Removing sites using AD Sites and Services works here.
_msdcs.contoso.com (Only SRV records and sites, DC, GC, etc - No host records) - SRV records are left after DC demotion. Removing sites using AD Sites and Services does not work here.

Has anyone seen this before? Feels like permissions issue.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2022-03-16T17:21:13.507+00:00

    Hi,

    If the DNS zone is active directory integrated zone, the SRV DNS record should be removed automatically or created automatically during the demotion or promotion.
    Do you have the same behavior when you promote new DC or create new site ?

    Please don't forget to mark helpful reply as answer


4 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-03-16T17:16:14.86+00:00

  2. Anonymous
    2022-03-16T17:45:20.47+00:00

    A possible work-around for the upper / lower case.
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/dns-registers-duplicate-srv-records-for-dc#workaround-1-prevent-duplicate-srv-records

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  3. Dane Briggs 281 Reputation points
    2022-03-16T18:55:17.2+00:00

    Great information guys! I appreciate your help!

    Any thoughts on why when I delete a Site in AD Sites and Services it deletes out of the contoso.com zone but not _msdcs.contoso.com?

    My assumption is that it has something to do with the way the previous engineer setup the separate zones.


  4. vinixwu 41 Reputation points
    2022-03-17T01:36:12.833+00:00

    I have a similar issue. I have a Windows Server 2012 R2 server as domain controller(named DC2), then I setup a QNAP TS-831X NAS(named NAS1) to be "additional domain controller" and joined to Active Directory. The NAS suddenly stopped to be domain controller after I changed the domain controller setting of NAS1.

    Since I don't want to give another try, I seized all FSMO roles to DC2, and manully deleted NAS1 from:
    Active Directory Sites & Services > Sites > Servers
    Active Directory Users & Computers > [Domain Name] > Domain Controllers

    But when I remove NAS1 from:
    DNS Manager > Forward Lookup Zones > [Domain Name] > Named Servers tab
    DNS Manager > Forward Lookup Zones > _msdcs.[Domain Name] > Named Servers tab
    , it added back automatically after I click refresh.

    How to fix it?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.