Won't this break things, e.g., in a situation where a local name has MX in external DNS?
That is probably fairly rare and fixable by adding similar MX records locally, but at least users should be warned about the possibility.
On the other hand does it really fix anything other than annoyance? Non-type-specific DNS queries hardly ever happen other than manually anyway.
Tapani
On Tue, Apr 28, 2020 at 12:23:57AM +0200, Giovanni Aneloni (giovanni.aneloni@live.com) wrote:
Fixes: https://bugzilla.ipfire.org/show_bug.cgi?id=12391 Change local zone to "trasnparent" instead of "typetrasnparent" to avoid NXDOMAIN when querying local hosts
Signed-off-by: Giovanni Aneloni giovanni.aneloni@live.com
diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index acbf6f5b5..825ac74ec 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -81,7 +81,7 @@ write_hosts_conf() { # Skip empty domainnames [ "${domainname}" = "" ] && continue
echo "local-zone: ${domainname} typetransparent"
echo "local-zone: ${domainname} transparent" done < /var/ipfire/main/hosts | sort -u # Add all hosts