aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/prosodyctl/check.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index ca5c51c9..86394a18 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -225,6 +225,9 @@ local function check(arg)
end
if not what or what == "dns" then
local dns = require "net.dns";
+ pcall(function ()
+ dns = require"net.unbound".dns;
+ end)
local idna = require "util.encodings".idna;
local ip = require "util.ip";
local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222});