mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
add dns_zone_cdscheck to integrity checks
This commit is contained in:
parent
2ebc4776ca
commit
cd40c9fe61
1 changed files with 10 additions and 0 deletions
|
|
@ -4732,6 +4732,16 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (zone->type == dns_zone_master) {
|
||||
result = dns_zone_cdscheck(zone, db, NULL);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||
"CDS/CDNSKEY consistency checks "
|
||||
"failed");
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
result = dns_zone_verifydb(zone, db, NULL);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Reference in a new issue