Skip to content
Snippets Groups Projects
Commit 2948a910 authored by Libor Peltan's avatar Libor Peltan
Browse files

DS push: use DNSKEY TTL for parent DS

parent dda79f87
Branches
Tags
1 merge request!1401DS push: use DNSKEY TTL for parent DS
Pipeline #92046 passed with stages
in 5 minutes and 27 seconds
......@@ -171,6 +171,7 @@ static int send_ds_push(conf_t *conf, zone_t *zone,
return KNOT_EOK; // No CDS, do nothing.
}
zone_cds.type = KNOT_RRTYPE_DS;
zone_cds.ttl = node_rrset(zone->contents->apex, KNOT_RRTYPE_DNSKEY).ttl;
struct ds_push_data data = {
.zone = zone->name,
......
......@@ -141,5 +141,7 @@ watch_ksk_rollover(t, child, child_zone, 2, 2, 3, "KSK rollover")
resp = parent.dig(ZONE, "DS")
resp.check_count(1, rtype="DS")
if resp.resp.answer[0].ttl != child.dnssec(child_zone).dnskey_ttl:
set_err("DS TTL")
t.end()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment