I'm trying to make a zone transfer script to export all my domains to separate files for backup purposes.
Could someone help me?
I have all my domains (1 per line) in a file called hosts.txt
In human terms, this is the script I'd like to run, I just need to convert to an understandable linux syntax
Should I be using grep here?
dig @ns1.mynameserver.com <hosts.txt> axfr > <domain.txt>