From 14aea6e9ca8c3a7fcceadd5bc361b00c3c4298d3 Mon Sep 17 00:00:00 2001 From: sn0wb0i Date: Thu, 18 Jul 2019 16:23:58 -0400 Subject: [PATCH] Test utility --- test-utility.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test-utility.sh diff --git a/test-utility.sh b/test-utility.sh new file mode 100755 index 0000000..91b1b1a --- /dev/null +++ b/test-utility.sh @@ -0,0 +1,21 @@ +#!/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" +