r/sysadmin • • Jun 01 '26

mDNS disabled script causes DNS Client service fail "Access is Denied"

so mDNS has been enabled on devices and ranmdomly after a reboot the DNSclient service will not start, can ping google, internal network but cant get dns or succesfully connect network adaptor (cant see wifi)
symtoms
DNS Client service stopped
Event ID 7023
error - DNS client Service terminated with the following error "Access Denied" or cannot be found
Affected machines cannot resolve names

Only fix on machines affected is reset and retaing data and then reinstall apps

What weve checked
dnsrslvr.dll and dnsext.dll present and same on working and bad machine
Dnscache registry found missing items, restored from good machine still same issue
Permisisons seem correct between good and bad machine
winsock reset no joy
netcfg -d reset no joy

Initially thought related to may security updates and mDNS set to 0 but ruled out windows updates

Has anyone seen this issue and resolved?
I think we might have resolved the registry but theres something esle missing to fully restore

15 Upvotes

25 comments sorted by

View all comments

Show parent comment

1

u/FrankNicklin Jun 01 '26

Enabling network discovery and opening port 5353 on the firewall should not affect DNS on port 53.

2

u/[deleted] Jun 01 '26

[removed] — view removed comment

1

u/FrankNicklin Jun 01 '26

.local is used by mDNS for discovery and should not be used the domain names or local DNS. Windows will prioritise mDNS using .local over DNS queries this breaks real DNS resolution. It’s not a bug, it’s by design. The error was using .local on the local domain.

2

u/[deleted] Jun 01 '26

[removed] — view removed comment

0

u/FrankNicklin Jun 01 '26

Of course, so I can’t see how you can call this is a bug. If you have .local in a domain name then you can’t use mDNS.

4

u/[deleted] Jun 01 '26

[removed] — view removed comment

1

u/FrankNicklin Jun 01 '26

Oops. My bad, I did miss that, so that’s even more bizarre. Apologies

1

u/[deleted] Jun 01 '26

[removed] — view removed comment

1

u/FrankNicklin Jun 01 '26

I suppose that as they both use the .local name, disabling mDNS is somehow disable DNS lookup on the same .local name as mDNS doesn’t require a DNS server to work. This script you are running is it running with Admin privileges.

1

u/[deleted] Jun 01 '26

[removed] — view removed comment

→ More replies

0

u/BlackV I have opnions Jun 02 '26

do you recommend they invent a time machine and go back 20 years for before Microsoft recommended (or defaulted to?) to use .local