ISC Bind9.2.1 : Can I list all A records for a Zone?

Martin McCormick martin at dc.cis.okstate.edu
Sat Jun 22 20:56:28 UTC 2002


#! /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


More information about the bind-users mailing list