Shell Script to Dump all Domain Zone Records

用法:

#dump_all_records.sh aiobox.net(此处替换为你的域名)

vi dump_all_records.sh

#!/bin/ksh
/bin/echo “The Internet Address of $1…”
/usr/bin/nslookup -q=A $1
/bin/echo “The canonical name for alias for $1…”
/usr/bin/nslookup -q=CNAME $1
/bin/echo “The host CPU and OS Type…”
/usr/bin/nslookup -q=HINFO $1
/bin/echo “The Mail Exchanger for $1…”
/usr/bin/nslookup -q=MX $1
/bin/echo “The Statement of Authority for $1…”
/usr/bin/nslookup -q=SOA $1
/bin/echo “The text information for $1…”
/usr/bin/nslookup -q=TXT $1
/bin/echo “The Well Known Services for $1…”
/usr/bin/nslookup -q=WKS $1

Social tagging:

Comments are closed.