]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
ddns: add DNAME type to the replace check
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 30 Jan 2019 13:53:59 +0000 (14:53 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 30 Jan 2019 13:53:59 +0000 (14:53 +0100)
src/knot/updates/ddns.c

index cac4c42d397b42a7dfe0028c28153e0c4b279d84..ad874274271e4dec06e0c0e8e900b36eebf4cd05 100644 (file)
@@ -1,4 +1,4 @@
-/*  Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/*  Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -272,6 +272,7 @@ static inline bool is_node_removal(const knot_rrset_t *rr)
 static bool should_replace(const knot_rrset_t *rrset)
 {
        return rrset->type == KNOT_RRTYPE_CNAME ||
+              rrset->type == KNOT_RRTYPE_DNAME ||
               rrset->type == KNOT_RRTYPE_NSEC3PARAM;
 }