Hide useless errors

This commit is contained in:
sn0wb0i 2019-07-20 20:23:47 -04:00
parent a36d9efc24
commit f4e5e8733e
1 changed files with 2 additions and 2 deletions

View File

@ -10,11 +10,11 @@ function test {
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 "$IP4_ADDR ($(dig +short -x $IP4_ADDR 2>/dev/null))"
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 "$IP6_ADDR ($(dig +short -x $IP6_ADDR 2>/dev/null))"
echo ""
}