tld-a-record/scan.sh

7 lines
206 B
Bash
Executable File

#!/bin/bash
wget "https://data.iana.org/TLD/tlds-alpha-by-domain.txt" --output-document tlds.txt
(for domain in $(grep -v '^#' tlds.txt); do
host -W 1 -t A "${domain}."
done) | grep -v 'has no A record'