From a1313dd07fa9cb7c7c28c617e628ef8b9f44ae37 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 12 Dec 2019 20:24:29 +1000 Subject: Comment++ --- apt-panopticon.lua | 3 +++ 1 file changed, 3 insertions(+) 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 = {} gatherIPs = function (host) if nil == IP[host] then local IPs + -- Takes about 30 seconds to look up the lot. + -- I tested using dig's -f option, it didn't seem much faster. + -- The sort -r assumes that deb.devuan.org is the first alphabetically. local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort -r | uniq') repeat IPs = dig:read("*l") -- cgit v1.1