I have a Mikrotik Hex S setup for some years, since I rarely have to work with networks in daily life, I am back to beginner status with my problem.
I had an external DNS server (Pihole) which I retired and went back to using the internal DNS on the Mikrotik. Unfortunately, now the internal clients are not resolved via DNS anymore. I use a script from the forum which puts the DHCP name into the static DNS cache, this has worked with the external DNS server without issues. The script is still working, but the entries in the static cache are ignored (?).
Where do I need to look, and what is the best way to debug this? If you need me to export my config, what is needed?
Do the names make it into the DNS static entries?
/ip/dns/static export
If so, can you resolve them locally?
:put [:resov nametolookup]
to show us all your config
/export file=anythingyouwish
Remove anything confidential from the config
And share anythingyouwish.rsc here
@eltikpad, thank you for your assistance. I was able to resolve the issue myself in the meantime.
The names did show up in the static entries and were resolved locally.
I could pinpoint the issue to one particular client only, all the others were working OK with the config. This client had erroneously a static DNS entry (8.8.8.
defined instead of just getting it via DHCP. Why wasn’t this an issue before? Because I had a rule in the router for the external PiHole DNS server to route all DNS traffic regardless of the target IP address over the router, which made the local resolution work. The moment this was switched off, the requests went out to the external DNS server without a chance to resolve the local clients.
After removal of the static DNS server entry, everything worked as it should.
So, not an issue with the router at all. I leave this here in case it helps someone else.