aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awall/host.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/awall/host.lua b/awall/host.lua
index be1dc61..aaa0854 100644
--- a/awall/host.lua
+++ b/awall/host.lua
@@ -26,9 +26,9 @@ function resolve(host, context)
if not dnscache[host] then
dnscache[host] = {}
- for rec in io.popen('dig '..host..' ANY'):lines() do
+ for rec in io.popen('dig -t ANY '..host):lines() do
local name, rtype, addr =
- string.match(rec, '^('..familypatterns.domain..')\t+%d+\t+IN\t+(A+)\t+(.+)')
+ string.match(rec, '^('..familypatterns.domain..')%s+%d+%s+IN%s+(A+)%s+(.+)')
if name and string.sub(name, 1, string.len(host) + 1) == host..'.' then
if rtype == 'A' then family = 'inet'