diff --git a/lib/dns/include/dns/masterdump.h b/lib/dns/include/dns/masterdump.h index 219632145f..5eaedc1acb 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.17 2001/01/09 21:53:02 bwelling Exp $ */ +/* $Id: masterdump.h,v 1.18 2001/01/12 19:58:51 bwelling Exp $ */ #ifndef DNS_MASTERDUMP_H #define DNS_MASTERDUMP_H 1 @@ -65,6 +65,12 @@ extern const dns_master_style_t dns_master_style_default; */ extern const dns_master_style_t dns_master_style_explicitttl; +/* + * A master style format designed for cache files. It prints explicit TTL + * values on each record line and never uses $ORIGIN or relative names. + */ +extern const dns_master_style_t dns_master_style_cache; + /* * A master style that prints name, ttl, class, type, and value on * every line. Similar to explicitttl above, but more verbose. diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index fd268adc18..d54b132c44 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.42 2001/01/09 21:51:03 bwelling Exp $ */ +/* $Id: masterdump.c,v 1.43 2001/01/12 19:58:50 bwelling Exp $ */ #include @@ -147,6 +147,14 @@ dns_master_style_explicitttl = { 24, 32, 32, 40, 80, 8 }; +const dns_master_style_t +dns_master_style_cache = { + DNS_STYLEFLAG_OMIT_OWNER | + DNS_STYLEFLAG_OMIT_CLASS | + DNS_STYLEFLAG_MULTILINE, + 24, 32, 32, 40, 80, 8 +}; + const dns_master_style_t dns_master_style_simple = { 0,