This one may help to that end.
https://devblogs.microsoft.com/scripting/clean-up-domain-controller-dns-records-with-powershell/
--please don't forget to Accept as answer if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
For Server 2012R2: After a DC is dead, we have to use the following to cleanup metadata:
https://video2.skills-academy.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup
As far I understand, this will not remove the DNS records of this dead domain controller. We have to remove the DNS records manually.
Do we also have to delete DNS records in root domain (example.com) of DNS? Or do we only delete the DNS records from _msdcs.root domain ( _msdcs.example.com)? As far as I understand, there are always two zones for domain example.com:
example.com and _msdcs.example.com
This one may help to that end.
https://devblogs.microsoft.com/scripting/clean-up-domain-controller-dns-records-with-powershell/
--please don't forget to Accept as answer if the reply is helpful--
Hi,
As far I understand, this will not remove the DNS records of this dead domain controller. We have to remove the DNS records manually.
Some DNS records can't be deleted automatically, you have to check and cleanup DNS records manually (NS,SRV,A,AAAA).
Do we also have to delete DNS records in root domain (example.com) of DNS? Or do we only delete the DNS records from _msdcs.root domain ( _msdcs.example.com)? As far as I understand, there are always two zones for domain example.com:
example.com and _msdcs.example.com
Yes you should delete all DNS records of deleted domain controller in the different domains example.com and _msdcs.example.com.
Please don't forget to mark helpful reply as answer
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Vicky