aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-06-26 14:40:42 +1000
committeronefang2019-06-26 14:40:42 +1000
commit17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31 (patch)
tree1f7db443047554b1861bc45a0c88664ba0b59eb9
parentComment tweak. (diff)
downloadapt-panopticon-17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31.zip
apt-panopticon-17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31.tar.gz
apt-panopticon-17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31.tar.bz2
apt-panopticon-17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31.tar.xz
Sort DNS records in reverse order.
Diffstat (limited to '')
-rwxr-xr-xmirror-checker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index ff8691e..e47f312 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -148,7 +148,7 @@ local IP = {}
148local gatherIPs = function (host) 148local gatherIPs = function (host)
149 if nil == IP[host] then 149 if nil == IP[host] then
150 local IPs 150 local IPs
151 local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort | uniq') 151 local dig = io.popen('dig +keepopen +noall +nottlid +answer ' .. host .. ' A ' .. host .. ' AAAA ' .. host .. ' CNAME ' .. host .. ' SRV | sort -r | uniq')
152 repeat 152 repeat
153 IPs = dig:read("*l") 153 IPs = dig:read("*l")
154 if nil ~= IPs then 154 if nil ~= IPs then