From de293642bc91f75a53ec7c489d63ad08091abaa2 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 6 Dec 2018 15:29:10 +0200 Subject: host.resolve: avoid ANY query --- awall/host.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awall/host.lua b/awall/host.lua index 35178fb..84c67e3 100644 --- a/awall/host.lua +++ b/awall/host.lua @@ -1,6 +1,6 @@ --[[ 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+(.+)' -- cgit v1.2.3