static int solve_add_different_ttl(zone_update_t *update, const knot_rrset_t *add)
{
- if (add->type == KNOT_RRTYPE_RRSIG) {
+ if (add->type == KNOT_RRTYPE_RRSIG || add->type == KNOT_RRTYPE_SOA) {
return KNOT_EOK;
}
rdata="dns1.ddns. hostmaster.ddns. 2013111213 10800 3600 1209600 7200")
verify(master, zone, dnssec)
+ # add SOA with different TTL
+ check_log("SOA different TTL")
+ up = master.update(zone)
+ up.add("ddns.", 1800, "SOA",
+ "dns1.ddns. hostmaster.ddns. 2014111213 10800 1800 1209600 7200")
+ up.send("NOERROR")
+ resp = master.dig("ddns.", "SOA")
+ resp.check(rcode="NOERROR",
+ rdata="dns1.ddns. hostmaster.ddns. 2014111213 10800 1800 1209600 7200")
+ verify(master, zone, dnssec)
+
# add and remove the same record
check_log("Add and remove same record")
up = master.update(zone)