'sslchecker' ändern
This commit is contained in:
parent
d5e841ea2f
commit
61893db6b5
1 changed files with 12 additions and 2 deletions
14
sslchecker
14
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue