Skip to content

Commit

Permalink
recursor: send DS query to the parent zone
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric authored and bluejekyll committed May 18, 2024
1 parent 202c230 commit f868f8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/recursor/src/recursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ impl Recursor {

// not in cache, let's look for an ns record for lookup
let zone = match query.query_type() {
RecordType::NS => query.name().base_name(),
// (RFC4035 section 3.1.4.1) the DS record needs to be queried in the parent zone
RecordType::NS | RecordType::DS => query.name().base_name(),
// look for the NS records "inside" the zone
_ => query.name().clone(),
};
Expand Down

0 comments on commit f868f8e

Please sign in to comment.