diff --git a/lib/dns/include/dns/masterdump.h b/lib/dns/include/dns/masterdump.h index 485ea486b1..36690c37fd 100644 --- a/lib/dns/include/dns/masterdump.h +++ b/lib/dns/include/dns/masterdump.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: masterdump.h,v 1.13 2000/08/03 19:50:11 bwelling Exp $ */ +/* $Id: masterdump.h,v 1.14 2001/01/04 22:19:18 mws Exp $ */ #ifndef DNS_MASTERDUMP_H #define DNS_MASTERDUMP_H 1 @@ -54,7 +54,7 @@ ISC_LANG_BEGINDECLS */ extern const dns_master_style_t dns_master_style_default; extern const dns_master_style_t dns_master_style_explicitttl; - +extern const dns_master_style_t dns_master_style_parsable; /*** *** Functions diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index d37c203bbe..35b1413b36 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: masterdump.c,v 1.38 2000/12/11 19:24:12 bwelling Exp $ */ +/* $Id: masterdump.c,v 1.39 2001/01/04 22:19:16 mws Exp $ */ #include @@ -158,6 +158,19 @@ dns_master_style_explicitttl = { 24, 32, 32, 40, 80, 8 }; +/* + * A master style that prints name, ttl, class, type, and value on every line. + * Similar to explicitttl above, but more verbose. Intended for generating + * master files which can be easily parsed by perl scripts and similar + * applications. + */ +const dns_master_style_t +dns_master_style_parsable = { + 0, + 24, 32, 32, 40, 80, 8 +}; + + /* * A style suitable for dns_rdataset_totext(). */