diff options
author | onefang | 2019-06-26 14:40:42 +1000 |
---|---|---|
committer | onefang | 2019-06-26 14:40:42 +1000 |
commit | 17ae2f64bf35ab5e0f78a38e850b1652b7e2eb31 (patch) | |
tree | 1f7db443047554b1861bc45a0c88664ba0b59eb9 | |
parent | Comment tweak. (diff) | |
download | apt-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-x | mirror-checker.lua | 2 |
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 = {} | |||
148 | local gatherIPs = function (host) | 148 | local 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 |