From fbf1dd22c4e71651fbdc5d26171fd5b2d8c77225 Mon Sep 17 00:00:00 2001 From: sn0wb0i Date: Thu, 18 Jul 2019 17:12:07 -0400 Subject: [PATCH] Update test utility --- test-utility.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test-utility.sh b/test-utility.sh index 91b1b1a..33dcbd3 100755 --- a/test-utility.sh +++ b/test-utility.sh @@ -1,13 +1,22 @@ #!/usr/bin/env bash function test { - SERVER="$1.dns.nixnet.xyz" + SUFFIX="dns.nixnet.xyz" - echo "TRYING $SERVER (DNS-over-TLS)" + SERVER="$1.$SUFFIX" - IP_ADDR="$(kdig @$SERVER +noall +short +tls-ca +tls-host=$SERVER +tls-sni=$SERVER whoami.v4.powerdns.org)" + SERVER4=$(dig -t A +short $SERVER | grep -v "xyz") + SERVER6=$(dig -t AAAA +short $SERVER | grep -v "xyz") - echo "$IP_ADDR ($(dig +short -x $IP_ADDR))" + echo "TRYING IPv4 $SERVER (DNS-over-TLS, $SERVER4)" + IP4_ADDR="$(kdig @$SERVER4 +noall +short +tls-ca +tls-host=$SERVER +tls-sni=$SERVER -t A whoami.v4.powerdns.org)" + echo "$IP4_ADDR ($(dig +short -x $IP4_ADDR))" + + echo "TRYING IPv6 $SERVER (DNS-over-TLS, $SERVER6)" + IP6_ADDR="$(kdig @$SERVER6 +noall +short +tls-ca +tls-host=$SERVER +tls-sni=$SERVER -t AAAA whoami.v6.powerdns.org)" + echo "$IP6_ADDR ($(dig +short -x $IP6_ADDR))" + + echo "" } @@ -15,6 +24,9 @@ test "adblock.lv1" test "adblock.lux1" test "adblock.ny1" +echo "" +echo "" + test "uncensored.lv1" test "uncensored.lux1" test "uncensored.ny1"