tld-a-record/scan.sh

7 lines
206 B
Bash
Raw Normal View History

2019-03-02 14:51:04 +00:00
#!/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'