Commit 299d60e1 authored by Daniel Salzman's avatar Daniel Salzman

nameserver: find zone suffix just for normal queries

parent 7de8c307
......@@ -247,11 +247,12 @@ static const zone_t *answer_zone_find(const knot_pkt_t *query, knot_zonedb_t *zo
* from the parent zone (if it exists).
*/
}
if (zone == NULL) {
if (knot_pkt_type(query) != KNOT_QUERY_UPDATE) {
if (knot_pkt_type(query) == KNOT_QUERY_NORMAL) {
zone = knot_zonedb_find_suffix(zonedb, qname);
} else {
// Direct matches only for DDNS.
// Direct match required.
zone = knot_zonedb_find(zonedb, qname);
}
}
......
Markdown is supported
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