Egads that was chore, but I did it. Bingo! Thanks to some more tips:
But to coax the Knot Resolver on the Omnia to respect /etc/hosts
I found I needed to:
- Add
option include_config '/etc/kresd/custom.conf'
to theconfig resolver 'kresd'
section in/etc/config/resolver
- Of particular note
option hostname_config '/etc/hosts'
did not work! Why not, don’t know, it’s mentioned in threads above.
- Of particular note
- Add one line
hints.add_hosts()
to the file/etc/kresd/custom.con
Then restart kresd /etc/init.d/resolver restart
and flush DNS caches on my desktop (on Ubuntu /etc/init.d/dns-clean
) and now my FQDN resolves to a local IP and the hairpin is averted. Phew.
As a side note I do wish this was better documented and not so hodge podge and experimental. But c’est la vie. May this rest as a findable evidence for anyone else wanting to do same.
I still don’t know what those Luci and Foris configs do.
.