Skip to content

Rust Fed Client: Resolve and connect to federation addresses in rust (using hickory) - #20600

Draft
devonh wants to merge 2 commits into
fed-client/pr03a-transport-and-tcpfrom
fed-client/pr03h-hickory-addresses
Draft

devonh wants to merge 2 commits into
fed-client/pr03a-transport-and-tcpfrom
fed-client/pr03h-hickory-addresses

Conversation

@devonh

@devonh devonh commented Dec 4, 2026

Copy link
Copy Markdown
Member

A different approach to #20577

A demonstration of how we could use hickory instead, along with some manual tweaks to make it align more closely with our current DNS setup.

The tweaks aren't mandatory (ie. resolv.conf reloading, etc.) but they showcase some of the differences between the approaches and things we may want to do to minimize the gap.

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Code style is correct (run the linters)

devonh and others added 2 commits December 4, 2026 18:48
Clippy 1.88 makes uninlined_format_args a style lint; fixed with clippy --fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FqDpJbGGPvJgi27kfCFrjH
Lookups are async and stop with the homeserver's runtime, so the
gai_resolver thread pool goes. Behaviour follows glibc's getaddrinfo:
IP literals returned as is, /etc/hosts ending the lookup at an entry of
either family, no cache, nameservers in file order, the answering family
kept when the other fails, IPv6 first only with a usable source address
of the same kind, and both files reread when they change.

Raises the minimum Rust version to 1.88, which hickory 0.26 needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FqDpJbGGPvJgi27kfCFrjH

This branch has not been deployed

No deployments
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.

1 participant