mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Add key metadata for DS published/withdrawn
In order to keep track of how many parents have the DS for a given key published or withdrawn, keep a counter.
This commit is contained in:
@@ -97,7 +97,8 @@
|
||||
|
||||
#define NUMERIC_NTAGS (DST_MAX_NUMERIC + 1)
|
||||
static const char *numerictags[NUMERIC_NTAGS] = {
|
||||
"Predecessor:", "Successor:", "MaxTTL:", "RollPeriod:", "Lifetime:"
|
||||
"Predecessor:", "Successor:", "MaxTTL:", "RollPeriod:",
|
||||
"Lifetime:", "DSPubCount:", "DSRemCount:"
|
||||
};
|
||||
|
||||
#define BOOLEAN_NTAGS (DST_MAX_BOOLEAN + 1)
|
||||
@@ -2014,6 +2015,9 @@ write_key_state(const dst_key_t *key, int type, const char *directory) {
|
||||
printtime(key, DST_TIME_SYNCPUBLISH, "PublishCDS", fp);
|
||||
printtime(key, DST_TIME_SYNCDELETE, "DeleteCDS", fp);
|
||||
|
||||
printnum(key, DST_NUM_DSPUBCOUNT, "DSPubCount", fp);
|
||||
printnum(key, DST_NUM_DSDELCOUNT, "DSDelCount", fp);
|
||||
|
||||
printtime(key, DST_TIME_DNSKEY, "DNSKEYChange", fp);
|
||||
printtime(key, DST_TIME_ZRRSIG, "ZRRSIGChange", fp);
|
||||
printtime(key, DST_TIME_KRRSIG, "KRRSIGChange", fp);
|
||||
|
Reference in New Issue
Block a user