This script checks if a dns-zone-transfer for a specific domain is possible on it’s domain-servers. A zonetransfer should for security reasons only be possible between 2 trusted dns-servers.
DOMAIN="example.com" && for i in `host -t ns $DOMAIN | awk '{print $4}'`; do host -a -l $DOMAIN $i; done