aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/unbound.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/unbound.lua b/net/unbound.lua
index c70f3965..22b0614b 100644
--- a/net/unbound.lua
+++ b/net/unbound.lua
@@ -139,6 +139,7 @@ local function lookup(callback, qname, qtype, qclass)
end
local function lookup_sync(qname, qtype, qclass)
+ if not unbound then initialize(); end
qtype = qtype and s_upper(qtype) or "A";
qclass = qclass and s_upper(qclass) or "IN";
local ntype, nclass = types[qtype], classes[qclass];