From 61893db6b5a60d80aac8dbdcad94c9e192657aa3 Mon Sep 17 00:00:00 2001 From: Elektroll Date: Tue, 28 Sep 2021 21:26:25 +0200 Subject: [PATCH] =?UTF-8?q?'sslchecker'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sslchecker | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sslchecker b/sslchecker index d497aad..a57a874 100644 --- a/sslchecker +++ b/sslchecker @@ -86,8 +86,18 @@ ValidDate() } Records() { - dig A +short $host | tr '\n' '\t'; dig +short -x $(dig A +short $host) 2> /dev/null - dig AAAA +short $host | tr '\n' '\t'; dig +short -x $(dig AAAA +short $host) 2> /dev/null +Records() +{ +IP4LIST=`dig +short A $host` +IP6LIST=`dig +short AAAA $host` + +for ipv4 in $IP4LIST; do + echo -e "A: \t ${ipv4} \t PTR: `dig +short -x ${ipv4}`" +done; + +for ipv6 in $IP6LIST; do + echo -e "AAAA: \t ${ipv6} \t PTR: `dig +short -x ${ipv6}`" +done; } if [[ "$source" == "local" ]]; then if [ -z "$file" ]; then