Mercurial > prosody-hg
diff net/unbound.lua @ 14215:2719dbb358c8
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 07 Jun 2026 18:23:24 +0200 |
| parents | 41fa97090264 |
| children | 2ec517d8d43e |
line wrap: on
line diff
--- 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);
