aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/check.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index ec67b31f..4a25fc1b 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -299,10 +299,12 @@ local function check(arg)
if not what or what == "dns" then
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);
- dns = require"net.unbound".dns;
+ unbound.purge(); -- ensure the above config is used
+ dns = unbound.dns;
end)
local idna = require "util.encodings".idna;
local ip = require "util.ip";