#! /bin/sh
dig @your.dns.address -taxfr your.zone \
| awk '{ print $1,$2,$3,$4,$5}' \
|grep " A " >some-file
Of course, you can get all the MX records by looking for
the string " MX " and so forth.
Martin McCormick WB5AGZ Stillwater, OK
OSU Center for Computing and Information Services Network Operations Group