Commit 61ee45c2 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

use local DNS resolver

parent 718bb23b
......@@ -26,8 +26,7 @@ function resolve(host)
if not dnscache[host] then
dnscache[host] = {}
-- TODO use default server
for rec in io.popen('dig @8.8.8.8 '..host..' ANY'):lines() do
for rec in io.popen('dig '..host..' ANY'):lines() do
local name, rtype, addr =
string.match(rec, '^('..familypatterns.domain..')\t+%d+\t+IN\t+(A+)\t+(.+)')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment