22 lines
390 B
Bash
22 lines
390 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
function test {
|
||
|
SERVER="$1.dns.nixnet.xyz"
|
||
|
|
||
|
echo "TRYING $SERVER (DNS-over-TLS)"
|
||
|
|
||
|
IP_ADDR="$(kdig @$SERVER +noall +short +tls-ca +tls-host=$SERVER +tls-sni=$SERVER whoami.v4.powerdns.org)"
|
||
|
|
||
|
echo "$IP_ADDR ($(dig +short -x $IP_ADDR))"
|
||
|
}
|
||
|
|
||
|
|
||
|
test "adblock.lv1"
|
||
|
test "adblock.lux1"
|
||
|
test "adblock.ny1"
|
||
|
|
||
|
test "uncensored.lv1"
|
||
|
test "uncensored.lux1"
|
||
|
test "uncensored.ny1"
|
||
|
|