Skip to content
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

server: demote log level, make Dns_one.add_additional_glue more correct #309

Merged
merged 5 commits into from
Apr 12, 2022

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Apr 12, 2022

No description provided.

…erver domain

Previously, Domain_name.subdomain was used. This is brittle since zone cuts
can be anywhere. Now, we check the Dns_trie (using lookup) that we're not
authoritative for the nameserver name (or have a delegation).
…legations

if a.example is delegated (a.example NS foo), and a record (glue) exists
(a.example A 1.2.3.4), the Dns_trie.lookup returned it instead of a `Delegation
error. This brings lookup and lookup_with_cname (which uses lookup_res) more
into the same shape (lookup_aux >>= check_zone >>= lookup_in_map)

Dns_trie.entries checked for SOA records, but zone cuts are at the presence of
a NS record -- SOA is only present in the child zone (and thus only present if
the very same NS is responsible for both parent and child).
@hannesm
Copy link
Member Author

hannesm commented Apr 12, 2022

best viewed commit by commit. includes test cases and bugfixes in the aftermath of #308

@hannesm hannesm requested a review from reynir April 12, 2022 09:09
Copy link
Member

@reynir reynir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me this looks reasonable and good

@hannesm hannesm merged commit 4a54aec into mirage:main Apr 12, 2022
@hannesm hannesm deleted the fixes branch April 12, 2022 13:59
hannesm added a commit to hannesm/opam-repository that referenced this pull request Jul 26, 2022
…er, dns-mirage, dns-client, dns-cli and dns-certify (6.3.0)

CHANGES:

* dns-server: demote log level for various messages (mirage/ocaml-dns#309 @hannesm)
* dns-zone: add additional glue: only add if authoritative for nameserver domain
  (mirage/ocaml-dns#309 @hannesm)
* BUGFIX: dns-trie: fix lookup when delegations are present, add tests
  (mirage/ocaml-dns#309 @hannesm)
* ozone: be more explicit when showing errors (mirage/ocaml-dns#311 @psafont)
* dns: avoid polymorphic comparison (mirage/ocaml-dns#314 @hannesm, reported by @RyanGibb)
* FEATURE: dns: add LOC resource records (RFC 1876) (mirage/ocaml-dns#310 @RyanGibb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants