masterdump.h File Reference

#include <stdio.h>
#include <isc/lang.h>
#include <dns/types.h>

Go to the source code of this file.

Defines

#define DNS_MASTERDUMP_H   1
#define DNS_STYLEFLAG_OMIT_OWNER   0x00010000U
 Omit the owner name when possible.
#define DNS_STYLEFLAG_OMIT_TTL   0x00020000U
 Omit the TTL when possible. If DNS_STYLEFLAG_TTL is also set, this means no TTLs are ever printed because $TTL directives are generated before every change in the TTL. In this case, no columns need to be reserved for the TTL. Master files generated with these options will be rejected by BIND 4.x because it does not recognize the $TTL directive.
#define DNS_STYLEFLAG_OMIT_CLASS   0x00040000U
 Omit the class when possible.
#define DNS_STYLEFLAG_TTL   0x00080000U
 Output $TTL directives.
#define DNS_STYLEFLAG_REL_OWNER   0x00100000U
 Output $ORIGIN directives and print owner names relative to the origin when possible.
#define DNS_STYLEFLAG_REL_DATA   0x00200000U
 Print domain names in RR data in relative form when possible. For this to take effect, DNS_STYLEFLAG_REL_OWNER must also be set.
#define DNS_STYLEFLAG_TRUST   0x00400000U
 Print the trust level of each rdataset.
#define DNS_STYLEFLAG_NCACHE   0x00800000U
 Print negative caching entries.
#define DNS_STYLEFLAG_NO_TTL   0x01000000U
 Never print the TTL.
#define DNS_STYLEFLAG_NO_CLASS   0x02000000U
 Never print the CLASS.
#define DNS_STYLEFLAG_RESIGN   0x04000000U
 Report re-signing time.
#define DNS_STYLEFLAG_NOCRYPTO   0x08000000U
 Don't printout the cryptographic parts of DNSSEC records.
#define DNS_STYLEFLAG_COMMENTDATA   0x10000000U
 Comment out data by prepending with ";".
#define DNS_STYLEFLAG_TTL_UNITS   0x20000000U
 Print TTL with human-readable units.

Typedefs

typedef struct dns_master_style dns_master_style_t

Functions

void dns_dumpctx_attach (dns_dumpctx_t *source, dns_dumpctx_t **target)
 Attach to a dump context.
void dns_dumpctx_detach (dns_dumpctx_t **dctxp)
 Detach from a dump context.
void dns_dumpctx_cancel (dns_dumpctx_t *dctx)
 Cancel a in progress dump.
dns_dbversion_tdns_dumpctx_version (dns_dumpctx_t *dctx)
 Return the version handle (if any) of the database being dumped.
dns_db_tdns_dumpctx_db (dns_dumpctx_t *dctx)
 Return the database being dumped.
isc_result_t dns_master_rdatasettotext (dns_name_t *owner_name, dns_rdataset_t *rdataset, const dns_master_style_t *style, isc_buffer_t *target)
 Convert 'rdataset' to text format, storing the result in 'target'.
isc_result_t dns_master_questiontotext (dns_name_t *owner_name, dns_rdataset_t *rdataset, const dns_master_style_t *style, isc_buffer_t *target)
isc_result_t dns_master_dumpnodetostream (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node, dns_name_t *name, const dns_master_style_t *style, FILE *f)
isc_result_t dns_master_dumpnode (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node, dns_name_t *name, const dns_master_style_t *style, const char *filename)
isc_result_t dns_master_stylecreate (dns_master_style_t **style, unsigned int flags, unsigned int ttl_column, unsigned int class_column, unsigned int type_column, unsigned int rdata_column, unsigned int line_length, unsigned int tab_width, isc_mem_t *mctx)
isc_result_t dns_master_stylecreate2 (dns_master_style_t **style, unsigned int flags, unsigned int ttl_column, unsigned int class_column, unsigned int type_column, unsigned int rdata_column, unsigned int line_length, unsigned int tab_width, unsigned int split_width, isc_mem_t *mctx)
void dns_master_styledestroy (dns_master_style_t **style, isc_mem_t *mctx)
isc_result_t dns_master_dumptostreaminc (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, FILE *f, isc_task_t *task, dns_dumpdonefunc_t done, void *done_arg, dns_dumpctx_t **dctxp)
isc_result_t dns_master_dumptostream (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, FILE *f)
isc_result_t dns_master_dumptostream2 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, dns_masterformat_t format, FILE *f)
isc_result_t dns_master_dumptostream3 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, dns_masterformat_t format, dns_masterrawheader_t *header, FILE *f)
 Dump the database 'db' to the steam 'f' in the specified format by 'format'. If the format is dns_masterformat_text (the RFC1035 format), 'style' specifies the file style (e.g., &dns_master_style_default).
isc_result_t dns_master_dumpinc (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename, isc_task_t *task, dns_dumpdonefunc_t done, void *done_arg, dns_dumpctx_t **dctxp)
isc_result_t dns_master_dumpinc2 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename, isc_task_t *task, dns_dumpdonefunc_t done, void *done_arg, dns_dumpctx_t **dctxp, dns_masterformat_t format)
isc_result_t dns_master_dumpinc3 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename, isc_task_t *task, dns_dumpdonefunc_t done, void *done_arg, dns_dumpctx_t **dctxp, dns_masterformat_t format, dns_masterrawheader_t *header)
isc_result_t dns_master_dump (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename)
isc_result_t dns_master_dump2 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename, dns_masterformat_t format)
isc_result_t dns_master_dump3 (isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version, const dns_master_style_t *style, const char *filename, dns_masterformat_t format, dns_masterrawheader_t *header)
 Dump the database 'db' to the file 'filename' in the specified format by 'format'. If the format is dns_masterformat_text (the RFC1035 format), 'style' specifies the file style (e.g., &dns_master_style_default).

Variables

ISC_LANG_BEGINDECLS
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_default
 The default master file style.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_full
 A master file style that dumps zones to a very generic format easily imported/checked with external tools.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_explicitttl
 A master file style that prints explicit TTL values on each record line, never using $TTL statements. The TTL has a tab stop of its own, but the class and type share one.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_cache
 A master style format designed for cache files. It prints explicit TTL values on each record line and never uses $ORIGIN or relative names.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_simple
 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.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_debug
 The style used for debugging, "dig" output, etc.
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_comment
 Similar to dns_master_style_debug but data is prepended with ";".
LIBDNS_EXTERNAL_DATA const
dns_master_style_t 
dns_master_style_keyzone
 The style used for dumping "key" zones.


Detailed Description

Definition in file masterdump.h.


Define Documentation

#define DNS_MASTERDUMP_H   1

Definition at line 21 of file masterdump.h.

#define DNS_STYLEFLAG_OMIT_OWNER   0x00010000U

Omit the owner name when possible.

Definition at line 52 of file masterdump.h.

Referenced by dump_rdatasets_text(), printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_OMIT_TTL   0x00020000U

Omit the TTL when possible. If DNS_STYLEFLAG_TTL is also set, this means no TTLs are ever printed because $TTL directives are generated before every change in the TTL. In this case, no columns need to be reserved for the TTL. Master files generated with these options will be rejected by BIND 4.x because it does not recognize the $TTL directive.

If DNS_STYLEFLAG_TTL is not also set, the TTL will be omitted when it is equal to the previous TTL. This is correct according to RFC1035, but the TTLs may be silently misinterpreted by older versions of BIND which use the SOA MINTTL as a default TTL value.

Definition at line 70 of file masterdump.h.

Referenced by printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_OMIT_CLASS   0x00040000U

Omit the class when possible.

Definition at line 73 of file masterdump.h.

Referenced by printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_TTL   0x00080000U

Output $TTL directives.

Definition at line 76 of file masterdump.h.

Referenced by dump_rdataset(), printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_REL_OWNER   0x00100000U

Output $ORIGIN directives and print owner names relative to the origin when possible.

Definition at line 82 of file masterdump.h.

Referenced by dumpctx_create(), and printmessage().

#define DNS_STYLEFLAG_REL_DATA   0x00200000U

Print domain names in RR data in relative form when possible. For this to take effect, DNS_STYLEFLAG_REL_OWNER must also be set.

Definition at line 86 of file masterdump.h.

Referenced by dumptostreaminc(), and printmessage().

#define DNS_STYLEFLAG_TRUST   0x00400000U

Print the trust level of each rdataset.

Definition at line 89 of file masterdump.h.

Referenced by dump_rdatasets_text().

#define DNS_STYLEFLAG_NCACHE   0x00800000U

Print negative caching entries.

Definition at line 92 of file masterdump.h.

Referenced by dump_rdatasets_raw(), and dump_rdatasets_text().

#define DNS_STYLEFLAG_NO_TTL   0x01000000U

Never print the TTL.

Definition at line 95 of file masterdump.h.

Referenced by main(), printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_NO_CLASS   0x02000000U

Never print the CLASS.

Definition at line 98 of file masterdump.h.

Referenced by printmessage(), and rdataset_totext().

#define DNS_STYLEFLAG_RESIGN   0x04000000U

Report re-signing time.

Definition at line 101 of file masterdump.h.

Referenced by dump_rdatasets_text().

#define DNS_STYLEFLAG_NOCRYPTO   0x08000000U

Don't printout the cryptographic parts of DNSSEC records.

Definition at line 104 of file masterdump.h.

Referenced by printmessage(), say_message(), totext_cdnskey(), totext_cds(), totext_dlv(), totext_dnskey(), totext_ds(), totext_openpgpkey(), and totext_rrsig().

#define DNS_STYLEFLAG_COMMENTDATA   0x10000000U

Comment out data by prepending with ";".

Definition at line 107 of file masterdump.h.

Referenced by rdataset_totext(), and totext_ctx_init().

#define DNS_STYLEFLAG_TTL_UNITS   0x20000000U

Print TTL with human-readable units.

Definition at line 110 of file masterdump.h.

Referenced by printmessage(), and rdataset_totext().


Typedef Documentation

typedef struct dns_master_style dns_master_style_t

Definition at line 39 of file masterdump.h.


Function Documentation

void dns_dumpctx_attach ( dns_dumpctx_t source,
dns_dumpctx_t **  target 
)

Attach to a dump context.

Require:

Definition at line 1181 of file masterdump.c.

References DNS_DCTX_VALID, INSIST, dns_dumpctx::lock, LOCK, dns_dumpctx::references, REQUIRE, and UNLOCK.

Referenced by dns_master_dumpinc3(), and dns_master_dumptostreaminc().

void dns_dumpctx_detach ( dns_dumpctx_t **  dctxp  ) 

Detach from a dump context.

Require:

Ensures:

Definition at line 1196 of file masterdump.c.

References DNS_DCTX_VALID, dumpctx_destroy(), INSIST, ISC_FALSE, ISC_TRUE, dns_dumpctx::lock, LOCK, dns_dumpctx::references, REQUIRE, and UNLOCK.

Referenced by dns_master_dump3(), dns_master_dumpinc3(), dns_master_dumptostream3(), dns_master_dumptostreaminc(), dump_done(), dump_quantum(), dumpcontext_destroy(), and dumpdone().

void dns_dumpctx_cancel ( dns_dumpctx_t dctx  ) 

Cancel a in progress dump.

Require:

Definition at line 1229 of file masterdump.c.

References dns_dumpctx::canceled, DNS_DCTX_VALID, ISC_TRUE, dns_dumpctx::lock, LOCK, REQUIRE, and UNLOCK.

Referenced by zone_shutdown(), and zone_unload().

dns_dbversion_t* dns_dumpctx_version ( dns_dumpctx_t dctx  ) 

Return the version handle (if any) of the database being dumped.

Require:

Definition at line 1217 of file masterdump.c.

References DNS_DCTX_VALID, REQUIRE, and dns_dumpctx::version.

Referenced by dump_done().

dns_db_t* dns_dumpctx_db ( dns_dumpctx_t dctx  ) 

Return the database being dumped.

Require:

Definition at line 1223 of file masterdump.c.

References dns_dumpctx::db, DNS_DCTX_VALID, and REQUIRE.

Referenced by dump_done().

isc_result_t dns_master_dumptostreaminc ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
FILE *  f,
isc_task_t task,
dns_dumpdonefunc_t  done,
void *  done_arg,
dns_dumpctx_t **  dctxp 
)

Definition at line 1655 of file masterdump.c.

References dns_dumpctx_attach(), dns_dumpctx_detach(), dns_masterformat_text, DNS_R_CONTINUE, dns_dumpctx::done, dns_dumpctx::done_arg, dumpctx_create(), ISC_R_SUCCESS, isc_task_attach(), dns_dumpctx::nodes, REQUIRE, dns_dumpctx::task, and task_send().

Referenced by dumpdone().

isc_result_t dns_master_dumptostream ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
FILE *  f 
)

Definition at line 1692 of file masterdump.c.

References dns_master_dumptostream3(), and dns_masterformat_text.

Referenced by dns_view_dumpdbtostream().

isc_result_t dns_master_dumptostream2 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
dns_masterformat_t  format,
FILE *  f 
)

Definition at line 1702 of file masterdump.c.

References dns_master_dumptostream3().

isc_result_t dns_master_dumptostream3 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
dns_masterformat_t  format,
dns_masterrawheader_t header,
FILE *  f 
)

Dump the database 'db' to the steam 'f' in the specified format by 'format'. If the format is dns_masterformat_text (the RFC1035 format), 'style' specifies the file style (e.g., &dns_master_style_default).

dns_master_dumptostream() is an old form of dns_master_dumptostream3(), which always specifies the dns_masterformat_text format. dns_master_dumptostream2() is an old form which always specifies a NULL header.

If 'format' is dns_masterformat_raw, then 'header' can contain information to be written to the file header.

Temporary dynamic memory may be allocated from 'mctx'.

Require:

Returns:

Definition at line 1712 of file masterdump.c.

References dns_dumpctx_detach(), DNS_R_CONTINUE, dumpctx_create(), dumptostreaminc(), flushandsync(), INSIST, and ISC_R_SUCCESS.

Referenced by dns_master_dumptostream(), dns_master_dumptostream2(), dumptostream(), and main().

isc_result_t dns_master_dumpinc ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename,
isc_task_t task,
dns_dumpdonefunc_t  done,
void *  done_arg,
dns_dumpctx_t **  dctxp 
)

Definition at line 1772 of file masterdump.c.

References dns_master_dumpinc3(), and dns_masterformat_text.

isc_result_t dns_master_dumpinc2 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename,
isc_task_t task,
dns_dumpdonefunc_t  done,
void *  done_arg,
dns_dumpctx_t **  dctxp,
dns_masterformat_t  format 
)

Definition at line 1783 of file masterdump.c.

References dns_master_dumpinc3().

isc_result_t dns_master_dumpinc3 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename,
isc_task_t task,
dns_dumpdonefunc_t  done,
void *  done_arg,
dns_dumpctx_t **  dctxp,
dns_masterformat_t  format,
dns_masterrawheader_t header 
)

Definition at line 1793 of file masterdump.c.

References cleanup(), dns_dumpctx_attach(), dns_dumpctx_detach(), DNS_R_CONTINUE, dns_dumpctx::done, dns_dumpctx::done_arg, dumpctx_create(), dns_dumpctx::file, isc_file_remove(), isc_mem_free, isc_mem_strdup, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_stdio_close(), isc_task_attach(), dns_dumpctx::nodes, opentmp(), dns_dumpctx::task, task_send(), tempname, and dns_dumpctx::tmpfile.

Referenced by dns_master_dumpinc(), dns_master_dumpinc2(), and zone_gotwritehandle().

isc_result_t dns_master_dump ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename 
)

Definition at line 1847 of file masterdump.c.

References dns_master_dump3(), and dns_masterformat_text.

Referenced by dns_cache_dump(), and writeset().

isc_result_t dns_master_dump2 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename,
dns_masterformat_t  format 
)

Definition at line 1855 of file masterdump.c.

References dns_master_dump3().

Referenced by ATF_TC_BODY(), and dump().

isc_result_t dns_master_dump3 ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
const dns_master_style_t style,
const char *  filename,
dns_masterformat_t  format,
dns_masterrawheader_t header 
)

Dump the database 'db' to the file 'filename' in the specified format by 'format'. If the format is dns_masterformat_text (the RFC1035 format), 'style' specifies the file style (e.g., &dns_master_style_default).

dns_master_dumpinc() and dns_master_dump() are old forms of _dumpinc3() and _dump3(), respectively, which always specify the dns_masterformat_text format. dns_master_dumpinc2() and dns_master_dump2() are old forms which always specify a NULL header.

If 'format' is dns_masterformat_raw, then 'header' can contain information to be written to the file header.

Temporary dynamic memory may be allocated from 'mctx'.

Returns:

Definition at line 1864 of file masterdump.c.

References cleanup(), closeandrename(), dns_dumpctx_detach(), DNS_R_CONTINUE, dumpctx_create(), dumptostreaminc(), INSIST, isc_mem_free, ISC_R_SUCCESS, opentmp(), and tempname.

Referenced by ATF_TC_BODY(), dns_master_dump(), dns_master_dump2(), and zone_dump().

isc_result_t dns_master_rdatasettotext ( dns_name_t owner_name,
dns_rdataset_t rdataset,
const dns_master_style_t style,
isc_buffer_t target 
)

Convert 'rdataset' to text format, storing the result in 'target'.

Notes:

Requires:

Definition at line 738 of file masterdump.c.

References ISC_FALSE, ISC_R_SUCCESS, ISC_R_UNEXPECTED, rdataset_totext(), totext_ctx_init(), and UNEXPECTED_ERROR.

Referenced by ATF_TC_BODY(), dns_message_pseudosectiontotext(), dns_message_sectiontotext(), dumpnode(), and modrdataset().

isc_result_t dns_master_questiontotext ( dns_name_t owner_name,
dns_rdataset_t rdataset,
const dns_master_style_t style,
isc_buffer_t target 
)

Definition at line 757 of file masterdump.c.

References ISC_FALSE, ISC_R_SUCCESS, ISC_R_UNEXPECTED, question_totext(), totext_ctx_init(), and UNEXPECTED_ERROR.

Referenced by dns_message_sectiontotext().

isc_result_t dns_master_dumpnodetostream ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
dns_dbnode_t node,
dns_name_t name,
const dns_master_style_t style,
FILE *  f 
)

Definition at line 1898 of file masterdump.c.

References isc_buffer::base, buffer, dns_db_allrdatasets(), dns_rdatasetiter_destroy(), dump_rdatasets_text(), isc_buffer_init, isc_mem_get, isc_mem_put, ISC_R_NOMEMORY, ISC_R_SUCCESS, ISC_R_UNEXPECTED, isc_stdtime_get(), isc_buffer::length, now, totext_ctx_init(), and UNEXPECTED_ERROR.

Referenced by dns_master_dumpnode(), and dumpnode().

isc_result_t dns_master_dumpnode ( isc_mem_t mctx,
dns_db_t db,
dns_dbversion_t version,
dns_dbnode_t node,
dns_name_t name,
const dns_master_style_t style,
const char *  filename 
)

Definition at line 1942 of file masterdump.c.

References dns_lctx, DNS_LOGMODULE_MASTERDUMP, dns_master_dumpnodetostream(), ISC_LOG_ERROR, isc_log_write(), ISC_LOGCATEGORY_GENERAL, ISC_R_SUCCESS, ISC_R_UNEXPECTED, isc_result_totext(), isc_stdio_close(), and isc_stdio_open().

isc_result_t dns_master_stylecreate ( dns_master_style_t **  style,
unsigned int  flags,
unsigned int  ttl_column,
unsigned int  class_column,
unsigned int  type_column,
unsigned int  rdata_column,
unsigned int  line_length,
unsigned int  tab_width,
isc_mem_t mctx 
)

Definition at line 1982 of file masterdump.c.

References dns_master_stylecreate2().

Referenced by main(), and modrdataset().

isc_result_t dns_master_stylecreate2 ( dns_master_style_t **  style,
unsigned int  flags,
unsigned int  ttl_column,
unsigned int  class_column,
unsigned int  type_column,
unsigned int  rdata_column,
unsigned int  line_length,
unsigned int  tab_width,
unsigned int  split_width,
isc_mem_t mctx 
)

Definition at line 1995 of file masterdump.c.

References dns_master_style::class_column, dns_master_style::flags, isc_mem_get, ISC_R_NOMEMORY, ISC_R_SUCCESS, dns_master_style::line_length, dns_master_style::rdata_column, REQUIRE, dns_master_style::split_width, style, dns_master_style::tab_width, dns_master_style::ttl_column, and dns_master_style::type_column.

Referenced by dns_master_stylecreate(), and printmessage().

void dns_master_styledestroy ( dns_master_style_t **  style,
isc_mem_t mctx 
)

Definition at line 2022 of file masterdump.c.

References isc_mem_put, REQUIRE, and style.

Referenced by main(), modrdataset(), and printmessage().


Variable Documentation

ISC_LANG_BEGINDECLS LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_default

The default master file style.

This uses $TTL directives to avoid the need to dedicate a tab stop for the TTL. The class is only printed for the first rrset in the file and shares a tab stop with the RR type.

Definition at line 119 of file masterdump.c.

Referenced by ATF_TC_BODY(), dns_zone_dumptostream(), dns_zone_setfile(), dns_zone_setfile2(), dump(), main(), ns_zone_configure(), zone_dump(), and zone_gotwritehandle().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_full

A master file style that dumps zones to a very generic format easily imported/checked with external tools.

Definition at line 133 of file masterdump.c.

Referenced by dns_zone_fulldumptostream(), dumpdone(), main(), and ns_zone_configure().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_explicitttl

A master file style that prints explicit TTL values on each record line, never using $TTL statements. The TTL has a tab stop of its own, but the class and type share one.

Definition at line 140 of file masterdump.c.

Referenced by main().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_cache

A master style format designed for cache files. It prints explicit TTL values on each record line and never uses $ORIGIN or relative names.

Definition at line 152 of file masterdump.c.

Referenced by dns_cache_dump(), dns_view_dumpdbtostream(), and dumpdone().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_simple

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.

Definition at line 163 of file masterdump.c.

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_debug

The style used for debugging, "dig" output, etc.

Definition at line 172 of file masterdump.c.

Referenced by _dns_tkey_dumpmessage(), ATF_TC_BODY(), dns_message_logpacket(), dns_message_logpacket2(), dns_rdataset_totext(), main(), and ns_client_dumpmessage().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_comment

Similar to dns_master_style_debug but data is prepended with ";".

Definition at line 181 of file masterdump.c.

Referenced by resquery_response(), and resquery_send().

LIBDNS_EXTERNAL_DATA const dns_master_style_t dns_master_style_keyzone

The style used for dumping "key" zones.

Definition at line 104 of file masterdump.c.

Referenced by zone_dump(), and zone_gotwritehandle().


Generated on Tue Apr 28 17:41:09 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha