nsbin/whois-dig-reverse-tld.sh
2023-04-12 08:54:56 +02:00

14 lines
323 B
Bash

#!/bin/sh
while read domain ; do
fulldomain=$(echo $domain | rev).${domain}
echo Checking ${fulldomain} ...
has_ns=$(dig +short ${fulldomain} ns)
# No NS server? potentially free
if [ -z "$has_ns" ]; then
echo "No ns for $fulldomain"
echo $fulldomain >> tld_no_ns
fi
done < ./tld