This script has been used to dig a domain/record to a file of DNS nameservers.
./dig-all <query-type> <query-record> <resolver-filename>
Download the list of DNS nameservers (XX
is the TLD of the country):
wget https://public-dns.info//nameserver/XX.txt
dig ANY records for domain.tld
using XX.txt
as the DNS nameservers list:
./dig-all ANY domain.tld XX.txt