diff options
-rw-r--r-- | awall/host.lua | 4 |
1 files 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+(.+)' |