comparison util/prosodyctl/check.lua @ 12520:bb5f772b3189 0.12

util.prosodyctl.check: Remove now redundant unbound config tweak This is now done in net.unbound itself Turning it back on in the config may still cause the problem of entries there masking the DNS values.
author Kim Alvefur <zash@zash.se>
date Thu, 26 May 2022 13:03:58 +0200
parents 3183f358a88f
children 7b3deafb9162 3edd39c55a8a
comparison
equal deleted inserted replaced
12510:cd3b5912c9a3 12520:bb5f772b3189
707 end 707 end
708 if not what or what == "dns" then 708 if not what or what == "dns" then
709 local dns = require "net.dns"; 709 local dns = require "net.dns";
710 pcall(function () 710 pcall(function ()
711 local unbound = require"net.unbound"; 711 local unbound = require"net.unbound";
712 local unbound_config = configmanager.get("*", "unbound") or {};
713 unbound_config.hoststxt = false; -- don't look at /etc/hosts
714 configmanager.set("*", "unbound", unbound_config);
715 unbound.dns.purge(); -- ensure the above config is used
716 dns = unbound.dns; 712 dns = unbound.dns;
717 end) 713 end)
718 local idna = require "util.encodings".idna; 714 local idna = require "util.encodings".idna;
719 local ip = require "util.ip"; 715 local ip = require "util.ip";
720 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222}); 716 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222});