Skip to content
Snippets Groups Projects
Commit 299d60e1 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

nameserver: find zone suffix just for normal queries

parent 7de8c307
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
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