forked from systemd/systemd-stable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolved: don't request the SOA for every dns label
When validating insecure delegations we don't actually need to request the SOA for every single dns label. We need the DS records for the zone, and we can seek them by querying for DS directly (in case we are at a zone cut) and then following the SOA referrals or the parent name until we have found a chain of trust. Extra transactions and roundtrips, especially transactions for RRs that aren't actually needed to validate and therefore aren't likely to be in the recursive resolver's own cache are a big slowdown during validation. Consequently, this change results in an enourmous speed up in validating most names from our own cold-cache (10x or more), by eliminating a large number of superfluous dnssec transactions.
- Loading branch information
Showing
1 changed file
with
71 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters