Commit de293642 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

host.resolve: avoid ANY query

parent f1407c2d
--[[
Host address resolver for Alpine Wall
Copyright (C) 2012-2017 Kaarle Ritvanen
Copyright (C) 2012-2018 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -29,7 +29,7 @@ function M.resolve(host, context)
if not dnscache[host] then
dnscache[host] = {}
for rec in io.popen('dig -t ANY '..host):lines() do
for rec in io.popen('dig '..host..' A '..host..' AAAA'):lines() do
local name, rtype, addr =
rec:match(
'^('..familypatterns.domain..')%s+%d+%s+IN%s+(A+)%s+(.+)'
......
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