As stated in the documentation for DNS over HTTPS, when implemented the router ignores static entries:
Currently DoH is not compatible with FWD type static entries, in order to utilize FWD entries, DoH must not be configured.
https://wiki.mikrotik.com/wiki/Manual:IP/DNS#DNS_over_HTTPS
submitted a support request to ask for updates, but would rather have a tombstone for people to find until this is addressed.
Alternatively, there may be a better solution for the use case:
- having clients on the LAN
- having servers on the LAN
- wanting those clients to resolve dns entries to local servers while they are on the LAN