-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to an oversight in a previous refactoring, all non-DNSSEC DNS queries sent by Zonemaster became EDNS queries. This commit makes it so that those queries are now non-EDNS queries. Default EDNS0 packet size values will now be properly used when appropriate, and a new, missing one has been created for DNSSEC. The caching logic of queries was also impacted. Simply put, a DNSSEC query using the default EDNS0 packet size of 1232 is made by setting parameter "dnssec" and/or "edns_details{do}" (the latter has precedence). For a non-DNSSEC EDNS query, setting parameter "edns_size" and/or "edns_details{size}" (the latter has precedence) will do the trick, but then it will use the provided value for the EDNS0 packet size. To use the default value of 512, just set parameter "edns_details" with an empty hash (or non-empty with any of its subkey(s) other than edns_details{do,size}) instead. - Fix logic related to flags dnssec and edns_size for when to use default values, and also when combined with edns_details - Fix caching logic when using dnssec and edns_size parameters - Make combined usage of dnssec with edns_details but without edns_details{do} to correctly set the dnssec (DO) flag - Removed uneeded code related to resetting flags between queries (- it was already done earlier in the same method) - Add constant UDP_DNSSEC_QUERY_DEFAULT (set to 1232) - Rename constant UDP_COMMON_EDNS_LIMIT to UDP_EDNS_COMMON_LIMIT - Add and update documentation - Add unit tests
- Loading branch information
Showing
3 changed files
with
119 additions
and
39 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
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
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