Skip to content
Snippets Groups Projects
Commit 3fb5bd76 authored by Lubos SLovak's avatar Lubos SLovak
Browse files

Adjusting of additional data when inserting node.

parent cb9a676c
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,12 @@ int zdb_insert_node_to_zone( zdb_zone *zone, zn_node *node )
res = zdb_adjust_delegation_point(zone, &d);
} else { // not a non-authoritative node or delegation point
// check if it has CNAME RR
zdb_adjust_cname(zone, node);
if (zdb_adjust_cname(zone, node) == 0) {
// if not, adjust additional data if any needed
zdb_adjust_additional(zone, node, LDNS_RR_TYPE_MX);
zdb_adjust_additional(zone, node, LDNS_RR_TYPE_NS);
zdb_adjust_additional(zone, node, LDNS_RR_TYPE_SRV);
}
zdb_connect_node(n, node);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment