Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
e1f63aea
Commit
e1f63aea
authored
Dec 06, 2018
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
host.resolve: avoid ANY query
parent
9a41a039
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
awall/host.lua
awall/host.lua
+2
-2
No files found.
awall/host.lua
View file @
e1f63aea
--[[
Host address resolver for Alpine Wall
Copyright (C) 2012-201
7
Kaarle Ritvanen
Copyright (C) 2012-201
8
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+(.+)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment