updated by /home/nico/bin/sync-all-repos on nb3

This commit is contained in:
Nico Schottelius 2023-04-12 08:54:56 +02:00
parent f875dbf66d
commit e579e8566f
1 changed files with 14 additions and 0 deletions

14
whois-dig-reverse-tld.sh Normal file
View File

@ -0,0 +1,14 @@
#!/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