util.prosodyctl.check: Remove now redundant unbound config tweak 0.12
authorKim Alvefur <zash@zash.se>
Thu, 26 May 2022 13:03:58 +0200
branch0.12
changeset 12524 bb5f772b3189
parent 12514 cd3b5912c9a3
child 12525 f07b3f6ad903
child 12526 1671cb924002
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.
util/prosodyctl/check.lua
--- a/util/prosodyctl/check.lua	Mon May 16 14:51:01 2022 +0200
+++ b/util/prosodyctl/check.lua	Thu May 26 13:03:58 2022 +0200
@@ -709,10 +709,6 @@
 		local dns = require "net.dns";
 		pcall(function ()
 			local unbound = require"net.unbound";
-			local unbound_config = configmanager.get("*", "unbound") or {};
-			unbound_config.hoststxt = false; -- don't look at /etc/hosts
-			configmanager.set("*", "unbound", unbound_config);
-			unbound.dns.purge(); -- ensure the above config is used
 			dns = unbound.dns;
 		end)
 		local idna = require "util.encodings".idna;