Skip to content

Conversation

@hannesm
Copy link
Member

@hannesm hannesm commented Nov 27, 2025

Only last commit is relevant. This adds a stream (well, Lwt_condition.t) for queries and answers. This is currently only implemented in the stub (where we have the Lwt monad). The dns-resolver needs some functionality so the dns-resolver-mirage can adhere to the same interface. The implementation covers both stub and resolver.

On top of #406; once this PR here is done and adapted to the dns-resolver, it can be used in dnsvizor for the query page.

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.

This needs to be implemented in the mirage resolver as well as it implements the same interface...

@hannesm
Copy link
Member Author

hannesm commented Nov 28, 2025

Thanks, I made this independent of #406. Yes, there will be merge conflicts - but they will be easy to navigate :)

@hannesm hannesm changed the title work-in-progress: Query stream Query stream Nov 30, 2025
@hannesm hannesm merged commit 610f6fd into mirage:main Nov 30, 2025
1 check failed
@hannesm hannesm deleted the query-stream branch November 30, 2025 16:59
hannesm added a commit to hannesm/opam-repository that referenced this pull request Nov 30, 2025
CHANGES:

* DNS: fix port encoding in HTTPS and SVCB records, add tests
  (mirage/ocaml-dns#399 @nickbetteridge)
* Dns_resolver_root.reserved_zone_records: add private networks, extend with
  IPv6 networks from RFC 6303 (mirage/ocaml-dns#401 mirage/ocaml-dns#402 @hannesm)
* Dns_resolver_root.reserved_zones: type is now Rr_map.t Domain_name.Map.t
  (mirage/ocaml-dns#402 @hannesm)
* resolver: use Dns_resolver_root.reserved_zones to not lookup private zones
  in the authoritative nameservers (mirage/ocaml-dns#403 @hannesm)
* resolver, stub: guard the usage of Dns_resolver_root.reserved_zones behind the
  boolean flag `add_reserved` (mirage/ocaml-dns#404 @hannesm)
* stub: also record clients (if `record_clients` is provided, default is true)
  (mirage/ocaml-dns#405 @hannesm)
* stub, resolver: add a stream (Lwt_condition.t) of query_info to display the
  live queries in a web interface (mirage/ocaml-dns#407 @reynir @hannesm)
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