DNStricks

=From the DNS Server=

Search & sort a subnet
grep '10\.0\.0\.' whatever.hosts | awk '{print $NF}' | sort -t. -k 4 -un

Get all non-reverse ZONES
grep zone /etc/named.conf | awk '{print $2}' | grep -v arpa | sed 's/"//g' > zones.txt

Get All reverse ZONES
grep zone /etc/named.conf | awk '{print $2}' | grep arpa | sed 's/"//g' > revs.txt

Get host records (A and CNAME)
dig AXFR whatever.com. | egrep -v "SOA|NS|MX|\;|_|^#"

=Not on the DNS server=