isc_mem_t *mctx;
bool dumpcache;
bool dumpzones;
+ bool dumpdeleg;
bool dumpadb;
bool dumpexpired;
bool dumpfail;
dns_db_attach(dctx->view->view->cachedb, &dctx->cache);
}
+ if (dctx->dumpdeleg) {
+ fprintf(dctx->fp, ";\n; Delegation cache\n;\n");
+ dns_delegdb_dump(dctx->view->view->deleg, dctx->dumpexpired,
+ dctx->fp);
+ }
+
if (dctx->cache != NULL) {
if (dctx->dumpadb) {
dns_adb_t *adb = NULL;
}
dns_db_detach(&dctx->cache);
}
+
if (dctx->dumpzones) {
style = &dns_master_style_full;
nextzone:
.mctx = server->mctx,
.dumpcache = true,
.dumpadb = true,
+ .dumpdeleg = true,
.dumpfail = true,
.viewlist = ISC_LIST_INITIALIZER,
};
/* only dump zones, suppress caches */
dctx->dumpadb = false;
dctx->dumpcache = false;
+ dctx->dumpdeleg = false;
dctx->dumpfail = false;
dctx->dumpzones = true;
ptr = next_token(lex, NULL);
+ } else if (ptr != NULL && strcmp(ptr, "-deleg") == 0) {
+ /* only dump deleg db, suppress other caches */
+ dctx->dumpcache = false;
+ dctx->dumpfail = false;
+ dctx->dumpadb = false;
+ ptr = next_token(lex, NULL);
} else if (ptr != NULL && strcmp(ptr, "-adb") == 0) {
/* only dump adb, suppress other caches */
dctx->dumpcache = false;
+ dctx->dumpdeleg = false;
dctx->dumpfail = false;
ptr = next_token(lex, NULL);
} else if (ptr != NULL && strcmp(ptr, "-bad") == 0) {
/* only dump badcache, suppress other caches */
dctx->dumpadb = false;
+ dctx->dumpdeleg = false;
dctx->dumpcache = false;
dctx->dumpfail = false;
ptr = next_token(lex, NULL);
} else if (ptr != NULL && strcmp(ptr, "-fail") == 0) {
/* only dump servfail cache, suppress other caches */
dctx->dumpadb = false;
+ dctx->dumpdeleg = false;
dctx->dumpcache = false;
ptr = next_token(lex, NULL);
}
output file is moved to ".1", and so on. If ``number`` is specified, then
the number of backup log files is limited to that number.
-.. option:: dumpdb [-all | -cache | -zones | -adb | -bad | -expired | -fail] [view ...]
+.. option:: dumpdb [-all | -cache | -deleg | -zones | -adb | -deleg | -bad | -expired | -fail] [view ...]
- This command dumps the server's caches (default) and/or zones to the dump file for
- the specified views. If no view is specified, all views are dumped.
- (See the ``dump-file`` option in the BIND 9 Administrator Reference
- Manual.)
+ This command dumps the server's caches (default) and/or zones to the
+ dump file for the specified views. If no view is specified, all views
+ are dumped. (See the ``dump-file`` option in the BIND 9 Administrator
+ Reference Manual.)
.. option:: fetchlimit [view]