I don’t think it was a good idea. Probably the “MikroTik anwer” only described what was done in the actual implementation, not what should have been done.
IMHO the DNS resolver should take DNS (UDP/TCP port 53) requests from the clients, then:
- lookup the requested data in the static/cache table to find any static records or cached items. if found, return them.
- when the found item is FWD, forward the query to specified server using DNS (UDP/TCP port 53)
- when not found, check the configuration:
- when DoH is configured, forward the query over DoH.
- when DoH is not configured, forward it to one of the configured DNS servers (as before DoH was added).
- when the reply is received, store it in the cache and return it to the client.
One could also state that when DoH is configured using a hostname and DNS servers are configured as well, the lookup of the DoH hostname should automatically be done using the DNS servers. But such “fallback” action may or may not be what you want for normal operation, maybe there should be a config checkmark for that.
(“use DNS servers when DoH fails”)


