Unable to resolve hosts entered in /etc/hosts over DNS
Goal: Have jenkins.example.com and other internal services (*.example.com) resolve only when on the LANs (not on the wider internet).
Problem: Entries in /etc/hosts are ignored by kresd despite LuCI's "Ignore /etc/hosts" option being unticked.
More information: In our setup, each LAN has a local domain like lan1.example.com. Moving jenkins.example.com to jenkins.lan1.example.com isn't good because it means we cannot use a wildcard TLS certificate like *.example.com because the certificate authorities don't sell subdomain wildcard certs.
After reading the knot resolver's documentation it seems that
modules = { hints = '/etc/hosts' }
is needed in the config (/tmp/kresd.config) but this file is generated automatically by /etc/resolver/dhcp_host_domain_ng.py which does not add it.
I think my bug is that a UI option is not supported by /etc/resolver/dhcp_host_domain_ng.py.
Environment: Black and a silver Turris Omnias. LuCI (git-22.115.68448-712bc8e) TurrisOS 5.4.3 83b0e20711ee4a927634b3c2a018c93527e84a2b r11431+100-83b0e20711