aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index d3cb7be..62acbf25 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -175,6 +175,9 @@ local IP = {}
175gatherIPs = function (host) 175gatherIPs = function (host)
176 if nil == IP[host] then 176 if nil == IP[host] then
177 local IPs 177 local IPs
178 -- Takes about 30 seconds to look up the lot.
179 -- I tested using dig's -f option, it didn't seem much faster.
180 -- The sort -r assumes that deb.devuan.org is the first alphabetically.
178 local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort -r | uniq') 181 local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort -r | uniq')
179 repeat 182 repeat
180 IPs = dig:read("*l") 183 IPs = dig:read("*l")