'sslchecker' ändern

This commit is contained in:
Kaisa Marysia 2021-09-28 21:26:25 +02:00
parent d5e841ea2f
commit 61893db6b5

View file

@ -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