Can I configure the Knot resolver on my Turris Omnia to resolve a subset of WAN names to local IP addresses?
It excellently resolves .lan addresses based the DHCP configs I have in Luci. But here’s the scenario:
I have a cloud server on cloud.lan
and cloud.mydomain.tld
.
cloud.lan
resolves to a local IP in form 192.168.0.nn and cloud.mydomain.tld
resolves to my WAN IP.
I would like to configure the DNS so that cloud.mydomain.tld
resolves to the local IP as well.
Is that possible, and if so how?
The reason for this is that I have a mobile device say that is configured to use cloud.mydomain.tld
. It works fine, BUT when it’s on the LAN this causes (I expect) a hairpin data travel out of my LAN and back in (in presumably one hop, but still a hairpin out and in). This could be avoided if I can have cloud.mydomain.tld
resolve to the internal LAN IP when the LAN DNS is used.