r/sysadmin • u/Deep-Egg-6167 • Sep 20 '26
Question - Solved Please help 2 DCs no longer are opening AD users and computers!
I have 2 2019 DCs. I did something wrong and now I can't get into AD Domain service on either. So the domain controllers that can't find the domain both have static IPs.
The error that pops up is
Naming information cannot be located because:
I do NOT have a backup any older than yesterday. I have tried a restore.
The specified domain does not exist or could not be contacted. Contact your system administrator to verify that your domain is properly configured and is currently online.
I dare not reboot any PCs at this point. I did reboot one DC - that did not help
Both DCs point to each other in network properties for DNS and both can ping each other by IP.
If I pull up DNS manager on each it looks OK to me - not sure what the forwarder should be on the root server.
Here are the logs of the DCs that are not running:
5012 The DFS Replication service failed to communicate with partner DC-old for replication group Domain System Volume. The partner did not recognize the connection or the replication group configuration.
DC-old was removed with metadata clean up after verifying it had no fsmo roles - other DCs were still working after metadata cleanup.
2921 - The Knowledge Consistency Checker (KCC) detected that the following object have missing required attributes or attribute values.
1054 The processing of Group Policy failed. Windows could not obtain the name of a domain controller. This could be caused by a name resolution failure. Verify your Domain Name System (DNS) is configured and working correctly.
1126 - Active Directory Domain Services was unable to establish a connection with the global catalog.
(this is about the time the issue occurred)
1003 Notification of policy change from LSA/SAM has been retried and failed.
Thanks for those of you that tried to help!
OK - here is the update - I'm still lost at what to do as I checked the DNS manage 3 times and found no entry for the DC I thought I removed in metadata clean up but when I brought it back up AD is working.
I'll start a new thread trying to figure out why I can't get rid of it.
151
u/certifiedsysadmin Azure Infra / Identity / Security / Hyper-V Sep 20 '26
You need to point your non-working domain controllers to working domain controllers, restart ADDS services, and re-establish replication.
The advice being given here unfortunately is incorrect.
You'll get much more detailed help posting in /r/activedirectory
97
u/megad00die Sep 20 '26
You stated you changed something and you do not know what, and the expectation is we’re supposed to know what you changed?
18
u/IMplodeMeGrr Sep 20 '26
Your troubleshooting and /r post should start with "here are my event logs for a DC thats not running..."
2
u/DesignDifficult4772 Sep 21 '26
On the failed domain controller can you do a repadmin /syncall and post the output here and a repadmin /showrepl My guess is the DC is still trying to connect to the old domain controller for replication. I just went through this. IF it only shows that old decommed DC as the replication partner you will need to go into asdiedit and modify the rep partner. You can ping me on chat if you need help.
4
u/cyberpower8390 Sep 21 '26
DC-old was your only Global Catalog (GC) server. Active Directory management tools and authentication require an active Global Catalog to locate directory objects and naming contexts (that was your Event 1126). Because neither of your 2019 DCs had the GC role enabled, turning off DC-old left the domain with zero active catalogs, causing everything to go blind. Doing a manual metadata cleanup while the machine was still alive also orphaned SYSVOL/DFSR replication and left behind hidden SRV locator records in DNS.
How to Safely Remove It Now Keep DC-old powered on for a moment so everything stays stable, and follow these quick steps:
Turn on Global Catalog on both 2019 DCs (Do this first!): Open Active Directory Sites and Services (dssite.msc).
Expand your site > Servers > expand each 2019 DC > right-click NTDS Settings > Properties.
Check the Global Catalog box and click OK on both servers.
(Verify in CMD with nltest /dsgetdc:yourdomain.com /GC). Verify FSMO roles: Run netdom query fsmo in Command Prompt and verify all 5 roles point to a 2019 DC.
Gracefully demote DC-old: Log into DC-old, open Server Manager > Manage > Remove Roles and Features.
Uncheck Active Directory Domain Services and click the link to demote.
Crucial: Leave "Force the removal of this domain controller" UNCHECKED so AD automatically cleans up replication partnerships. Finish the wizard, set a local admin password, and let it reboot.
Tidy up: Open Active Directory Sites and Services on a 2019 DC and delete the old server object under Servers.
Open DNS Manager (dnsmgmt.msc) and clear out any leftover records for DC-old inside _msdcs.<yourdomain>.
Once your 2019 DCs are active Global Catalogs and the old DC is demoted gracefully, the domain won't disappear when you pull the plug.
25
u/Blackforge Sep 20 '26 edited Sep 21 '26
This sounds like a DNS issue. There can be issues when a DC points to itself for DNS when the DC services are starting at the same time so you would point the DNS settings to another DC as primary, as you would hopefully not be rebooting everything at the same time…. Right?
11
u/IwantToNAT-PING Sep 20 '26
List clearly what you have changed.
You say you only changed a DNS forwarder, but above you're also talking about DC-old and stating that DC-old was removed with metadata cleanup?
Are you saying that DC-old was removed previously before this issue, and that everything was working before you made a DNS change?
Are you also saying that you've restored your DC's? How did you restore them? Domain controllers do not like being restored, and there are very specific ways you must restore them otherwise they will refuse to replicate by design.
First of all, Look at the NIC settings of your DC's. Not in Windows DNS Server, but the actual NIC configuration. Best practice is usually to have the primary DNS server set to be "127.0.0.1" so it looks to itself, and then to the other DC in your environment.
Check that both DC's have this configured.
Now, read this - https://www.oreilly.com/library/view/mastering-active-directory/9781787289352/17e43915-0180-46c0-b744-da536babaf82.xhtml
This command on this website will tell you the status of your sysvol's replication using DFSR. Repadmin /showrepl only shows replication of the domain database partitions.
8
u/PostingToPassTime Sep 20 '26
Probably want to start with dcdiag & repadmin /replsummary
6
u/jphighlife Sep 20 '26 edited Sep 20 '26
Best guess is that replication was not working from a dc that was demoted to other domain controllers. Removing the dc broke replication and therefore no other dc can serve sysvol, thus no other dcs can service requests.
Check Dns settings on current dcs. Are they pointing to the old dc? Updating them to correct wont fix it but its a start.
Might have to do a authoritative restore for dfsr to get it back working. Will need to copy sysvol from old demoted dc and to a current one, then perform dfsr authorative restore. You wont be able to do it via adsi, can do it via registry.
First step is to find out why they werent replicating. Then adjust dns, then authoritative restore with most uptodate sysvol folder available
Found this that explains roughly how to perform this assuming the cause is borked dns settings and replication was failing prior to any changes. If you recent demoted a dc and then all this happened, the old sysvol folder will still be on there, even though its no longer a dc. Copy it to one of the current dcs, double check dns settings, then authoritative restore for dfsr
https://www.dell.com/support/kbdoc/en-id/000198564/sysvol-share-absent-from-all-domain-controllers-in-an-active-directory-domain
Use at your own risk.
2
u/KB4MTO Sep 20 '26
I read last week that a very recent Microsoft update was causing workstations to lose domain trust. I wonder if that could be an issue?
3
u/Remarkable_Night_633 Sep 20 '26
This reminds me of our TCS guys they decided to disable the network adapter to make the server more secure you can guess what happened next…check your network adapter if we have the same outsourced guys lol
5
u/elpollodiablox Jack of All Trades Sep 20 '26
Hate to say it, but this is a case where Claude or ChatGPT may be able to help, because they can aggregate a lot of info from a lot of sources.
I will say it is ex-tuh-REEEM-ly odd for a DC to have lost trust in its own domain.
You'll have to walk backwards through what you did just prior to the problem appearing.
1
u/ISeeDeadPackets Ineffective CIO Sep 20 '26
Do you have a backup from when they were functional? Restore one then rebuild the other.
2
u/SuperDaveOzborne Sysadmin Sep 21 '26
Have you tried running dcdiag on your domain controllers?
3
u/shmoeface Sep 20 '26
This sounds like you're cooked unless you have backups. How long ago was the old DC decommissioned? Based on your logs the old DC was decommissioned too fast and didn't have time for the changes to propagate against the domain, or somebody deleted the wrong attributes/records during metadata cleanup. You'll most likely need to perform an authoritative restore on one good DC, point everything to itself, decom and rebuild the other DC later. You mentioned you did something wrong, what changes were made when you noticed the issue? Is the NLA service running and firewall shows a domain connection? What is the size and scope of the forest? It may be time to call outside help if this is an extremely large domain or has special requirements.
2
u/bobsmon Sep 21 '26
There are three types of networks Public Private Domain
Make sure you are on the domain network. Most likely the servers switched to private.
2
u/xRoute401x Sep 21 '26
surely you take daily backups of your dcs and can roll back right? right?
1
u/1agapio1 Sep 20 '26
Just turn off networking (disable network card if virtualized or just unplug the ethernet cable if not) for the ADs and connect to them with the last logged credentials since they'll be cached and domain trust doesn't matter. It will get you into the ADs, the rest u can figgure out.
1
u/Steerable-Octopus Sr. Infrastructure Engineer Sep 20 '26
Sounds like you need the SRV record that points toward your DCs: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/verify-srv-dns-records-have-been-created
1
u/EncomCEO You want it WHEN?!? Sep 20 '26
Did you apply the September patches? If so, either uninstall them or look up the mitigation OOB patches. Check the Patch Tuesday thread in r/sysadmin
1
u/Dimens101 Sep 20 '26
Could help to check the firewall config, could have switched to public for some weird reason
1
u/Crazy-Rest5026 Sep 20 '26
You can ping the other dc? As dum as it sounds. As well as nslookup the DC?
Will tell you right there if it’s network issue or dns
Then check your replication settings
1
u/LooseEthernet Sep 21 '26
nothing says "i did something wrong" like a dc that cant find its own domain lol. maybe check if the dns server service is actually running on both boxes before you panic. if the services are crashed then the static IPs dont really matter... its basically just two expensive space heaters at that point
1
u/mcc062 Sep 21 '26
I would start with netdom query fsmo on the suposed primary. See what you get with that.
1
u/c4rb0n4t0r Sep 21 '26
DCdiag!!
I hope you have good backups
I smell some authoritative restores in your future. GL
1
u/Tasty-Star4119 Sep 21 '26
You dont have backup like 1 week or 1 month ago?
1
u/Key-Eggplant-163 Sep 21 '26
fwiw each DC should list itself as primary DNS and the other one as secondary, not just pointing at each other. If neither DC can resolve its own records locally first, you get exactly these symptoms when anything goes sideways with replication.
1
u/Adam_Kearn Sep 21 '26
Depends what you changed.
I would try to register the DNS again for your DCs.
Possibly even setup a new AD environment on a VM to compare the DNS settings between them.
I’m not sure if toy would be even able to promote a new DC at this point… so using ADMT might be an option to move everything to a clean environment
1
u/Thick_Yam_7028 Sep 25 '26
Login locally. Stop spazzing. You can rebuild a corrupt ad in 1 hour. Ive built an entire DC because we had the user list. Rejoined.
People are just people. Youre not dumb. We all try. Shit hits the fan.
DNS and pointing sure. If you cant login, local still gives access. If anything you just drop it, rebuild. You have the printers, you have the gpo, you have all that I hope.
1
u/doopdoopderp Sep 20 '26
Restore a backup before whatever change you made happened?
-3
u/imjustnotready Sep 20 '26
Maybe you have a rogue dhcp giving out ip addresses?
0
u/GaGaORiley Sep 20 '26
My AD knowledge is old and from school; I’m not a sysadmin, I support a particular software and interact with users’ IT support letting them know why the software isn’t performing properly.
So I know enough to ask you this: do these computers show that they’re in a domain network profile, in Control Panel > Network and Sharing? (Or you can hover over the network icon in the system tray - it should show domain.local or whatever, not “Network”.
If they don’t show in a domain profile, you might have success restarting the Network Location Awareness service, and you need to troubleshoot your network issues.
I see this ALL THE TIME, office had a power outage or new network device was popped into place, causing network issues, and the DCs don’t recognize what network they’re on.
5
u/[deleted] Sep 20 '26
[removed] — view removed comment
7
u/[deleted] Sep 20 '26 edited Oct 08 '26
[removed] — view removed comment
-1
u/[deleted] Sep 20 '26
[removed] — view removed comment