2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Use stale TTL as RRset TTL in dumpdb

It is more intuitive to have the countdown 'max-stale-ttl' as the
RRset TTL, instead of 0 TTL. This information was already available
in a comment "; stale (will be retained for x more seconds", but
Support suggested to put it in the TTL field instead.
This commit is contained in:
Matthijs Mekking
2021-03-12 16:27:45 +01:00
parent debee6157b
commit a83c8cb0af
4 changed files with 4 additions and 8 deletions

View File

@@ -1108,10 +1108,7 @@ again:
} else {
isc_result_t result;
if (STALE(rds)) {
fprintf(f,
"; stale (will be retained for %u more "
"seconds)\n",
rds->stale_ttl);
fprintf(f, "; stale\n");
} else if (ANCIENT(rds)) {
isc_buffer_t b;
char buf[sizeof("YYYYMMDDHHMMSS")];