util/prosodyctl/check.lua
changeset 11621 166f8e1d82b0
parent 11620 cd4006709493
child 11638 a6c87b4c0cdf
--- a/util/prosodyctl/check.lua	Sun Jun 20 17:34:50 2021 +0200
+++ b/util/prosodyctl/check.lua	Sun Jun 20 17:51:44 2021 +0200
@@ -228,6 +228,9 @@
 	if not what or what == "dns" then
 		local dns = require "net.dns";
 		pcall(function ()
+			local unbound_config = configmanager.get("*", "unbound") or {};
+			unbound_config.hoststxt = false; -- don't look at /etc/hosts
+			configmanager.set("*", "unbound", unbound_config);
 			dns = require"net.unbound".dns;
 		end)
 		local idna = require "util.encodings".idna;