# HG changeset patch # User Kim Alvefur # Date 1593106131 -7200 # Node ID 3cdb4a7cb406345c4040ef85e2ebb1fe19a16fb3 # Parent 4603697aee50353e3c8dfab806ae6c417645f697 util.prosodyctl.check: Use net.unbound for DNS if available Improves performance somewhat by avoiding the rate limiting in net.dns diff -r 4603697aee50 -r 3cdb4a7cb406 util/prosodyctl/check.lua --- a/util/prosodyctl/check.lua Thu Jun 25 19:24:58 2020 +0200 +++ b/util/prosodyctl/check.lua Thu Jun 25 19:28:51 2020 +0200 @@ -225,6 +225,9 @@ 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});