From e122d65f52d622b1411f430279f62a7e3fe78bcf Mon Sep 17 00:00:00 2001 From: Laine Gholson Date: Fri, 6 Nov 2015 19:16:21 -0600 Subject: [PATCH] Only use local rDNS with .local domain --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index cdf603f..e0615f3 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4515,7 +4515,7 @@ determine_rdns() { local saved_openssl_conf="$OPENSSL_CONF" OPENSSL_CONF="" # see https://github.com/drwetter/testssl.sh/issues/134 - if [[ "$NODEIP" == 192.168.*.* ]]; then + if [[ "$NODE" == *.local ]]; then if which avahi-resolve &>/dev/null; then rDNS=$(avahi-resolve -a $NODEIP 2>/dev/null | awk '{ print $2 }') elif which dig &>/dev/null; then