-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolver: do dnssec validation as an option #325
Conversation
50b0c79
to
6d883f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a first impression it looks good to me. I'll look over it again Monday (maybe Sunday).
@@ -152,7 +152,7 @@ let resolve t ~rng ip_proto ts name typ = | |||
*) | |||
let rec go t types name = | |||
Logs.debug (fun m -> m "go %a" Domain_name.pp name) ; | |||
match find_nearest_ns rng ip_proto ts t (Domain_name.raw name) with | |||
match find_nearest_ns rng ip_proto dnssec ts t (Domain_name.raw name) with | |||
| `NeedAddress ns -> go t addresses ns | |||
| `NeedDnskey (zone, ip) -> zone, zone, [`K (Rr_map.K Dnskey)], ip, t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`NeedDnskey
should never be returned if dnssec
is false. I don't think it's worth it to try encode it in the types, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed.
Thanks! |
…er, dns-mirage, dns-client, dns-cli and dns-certify (6.4.1) CHANGES: * dns-client: adapt to happy eyeballs 0.4.0 (mirage/ocaml-dns#329 @reynir @hannesm) * dns-resolver: dnssec validation is optional via a labeled parameter ~dnssec passed to Dns_resolver.create (mirage/ocaml-dns#325 @hannesm) * upgrade to dune 2 (mirage/ocaml-dns#327 @reynir)
…er, dns-mirage, dns-client, dns-cli and dns-certify (6.4.1) CHANGES: * dns-client: adapt to happy eyeballs 0.4.0 (mirage/ocaml-dns#329 @reynir @hannesm) * dns-resolver: dnssec validation is optional via a labeled parameter ~dnssec passed to Dns_resolver.create (mirage/ocaml-dns#325 @hannesm) * upgrade to dune 2 (mirage/ocaml-dns#327 @reynir)
in #290 / 4276306 we added DNSSec support to the resolver. With this PR, the DNSSec validation is made optional (
Dns_resolver.create
takes a labelleddnssec:bool
argument to switch it on or off for the lifetime of the resolver).