# HG changeset patch # User Kim Alvefur # Date 1780849404 -7200 # Node ID 2719dbb358c899a2383c3083651f7db5b83f947f # Parent 3870f944dec4a7c7a5a0314539acdddbaa79ab46 net.unbound: Briefly explain default override settings resolvconf=true is the default in luaunbound, so technically redundant, but an excuse to remove that comment and add some better ones. diff -r 3870f944dec4 -r 2719dbb358c8 net/unbound.lua --- a/net/unbound.lua Sun Jun 07 19:42:39 2026 +0200 +++ b/net/unbound.lua Sun Jun 07 18:23:24 2026 +0200 @@ -25,7 +25,12 @@ local classes, types, errors = dns_utils.classes, dns_utils.types, dns_utils.errors; local parsers = dns_utils.parsers; -local builtin_defaults = { hoststxt = false } +local builtin_defaults = { + -- Continue net.dns tradition of not reading /etc/hosts which does not fit well with SRV records anyway + hoststxt = false; + -- net.dns did read /etc/resolv.conf and we want libunbound to instead of operating in recursive mode + resolvconf = true; +} local function add_defaults(conf) conf = conf or {}; @@ -43,7 +48,6 @@ end local unbound_config; --- Note: libunbound will default to using root hints if resolvconf is unset local function connect_server(unbound, server) log("debug", "Setting up net.server event handling for %s", unbound);