docs(dns): Document the new dns_servers option #2491

Open
stratself wants to merge 15 commits from stratself/continuwuity:stratself/docs-dns-aerodynamic-upgrades into main
Member

This pull request introduces an aerodynamic package called "just use the config variable" for the DRS (DNS resolving system) component of Scuderia Continuwuity™️. By documenting this option it reduces a ton of friction (haha get it) for selfhosters to tune their DNS properly.

This works on main but milestoning for next release because we're not really racing until then.

Pull request checklist:

  • This pull request targets the main branch, and the branch is named something other than
    main.
  • I have written an appropriate pull request title and my description is clear.
  • I understand I am responsible for the contents of this pull request.
  • I have followed the contributing guidelines:
<!-- In order to help reviewers know what your pull request does at a glance, you should ensure that 1. Your PR title is a short, single sentence describing what you changed 2. You have described in more detail what you have changed, why you have changed it, what the intended effect is, and why you think this will be beneficial to the project. If you have made any potentially strange/questionable design choices, but didn't feel they'd benefit from code comments, please don't mention them here - after opening your pull request, go to "files changed", and click on the "+" symbol in the line number gutter, and attach comments to the lines that you think would benefit from some clarification. --> This pull request introduces an aerodynamic package called "just use the config variable" for the DRS (DNS resolving system) component of Scuderia Continuwuity™️. By documenting this option it reduces a ton of friction (haha get it) for selfhosters to tune their DNS properly. This works on main but milestoning for next release because we're not really racing until then. <!-- Example: This pull request allows us to warp through time and space ten times faster than before by double-inverting the warp drive with hyperheated jump fluid, both making the drive faster and more efficient. This resolves the common issue where we have to wait more than 10 milliseconds to engage, use, and disengage the warp drive when travelling between galaxies. --> <!-- Closes: #... --> <!-- Fixes: #... --> <!-- Uncomment the above line(s) if your pull request fixes an issue or closes another pull request by superseding it. Replace `#...` with the issue/pr number, such as `#123`. --> **Pull request checklist:** <!-- You need to complete these before your PR can be considered. If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. --> - [x] This pull request targets the `main` branch, and the branch is named something other than `main`. - [x] I have written an appropriate pull request title and my description is clear. - [x] I understand I am responsible for the contents of this pull request. - I have followed the [contributing guidelines][c1]: - [x] My contribution follows the [code style][c2], if applicable. - [x] I ran [pre-commit checks][c1pc] before opening/drafting this pull request. - [x] I have [tested my contribution][c1t] (or proof-read it for documentation-only changes) myself, if applicable. This includes ensuring code compiles. - [x] My commit messages follow the [commit message format][c1cm] and are descriptive. <!-- Notes on these requirements: - While not required, we encourage you to sign your commits with GPG or SSH to attest the authenticity of your changes. - While we allow LLM-assisted contributions, we do not appreciate contributions that are low quality, which is typical of machine-generated contributions that have not had a lot of love and care from a human. Please do not open a PR if all you have done is asked ChatGPT to tidy up the codebase with a +-100,000 diff. - In the case of code style violations, reviewers may leave review comments/change requests indicating what the ideal change would look like. For example, a reviewer may suggest you lower a log level, or use `match` instead of `if/else` etc. - In the case of code style violations, pre-commit check failures, minor things like typos/spelling errors, and in some cases commit format violations, reviewers may modify your branch directly, typically by making changes and adding a commit. Particularly in the latter case, a reviewer may rebase your commits to squash "spammy" ones (like "fix", "fix", "actually fix"), and reword commit messages that don't satisfy the format. - Pull requests MUST pass the `Checks` CI workflows to be capable of being merged. This can only be bypassed in exceptional circumstances. If your CI flakes, let us know in matrix:r/dev:continuwuity.org. - Pull requests have to be based on the latest `main` commit before being merged. If the main branch changes while you're making your changes, you should make sure you rebase on main before opening a PR. Your branch will be rebased on main before it is merged if it has fallen behind. - We typically only do fast-forward merges, so your entire commit log will be included. Once in main, it's difficult to get out cleanly, so put on your best dress, smile for the cameras! --> [c1]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md [c2]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/docs/development/code_style.mdx [c1pc]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#pre-commit-checks [c1t]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#running-tests-locally [c1cm]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#commit-messages
stratself added this to the 26.11.0 milestone 2026-11-10 18:07:44 +00:00
Also includes tabs for both config option and env vars.
Attempting to list out both options because idk which one should be recommended and why
* Add manpage
* Add advise to actually implement `access-control`
Also recommend Technitium over other resolvers
docs(dns): Smaller wording improvements
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 10s
Checks / Prek / Check changed files (pull_request) Successful in 7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m14s
7db88d790a
@ -12,3 +14,2 @@
```txt title="/etc/resolv.conf"
nameserver 127.0.0.1
Starting from version vXX.X.X, Continuwuity includes a `dns_servers` option to specify which resolver(s) to use. The previous instructions to edit your `/etc/resolv.conf` is now deprecated in favor of this new approach.
Member

(comment to remember to change this to whatever release it gets included in)

(comment to remember to change this to whatever release it gets included in)
Member

this can probably be updated to be v26.11.0 now, since the change is included in that release (that technically isnt released yet but details schmetails, we can just wait with merging this until v26.11.0 is actually released)

this can probably be updated to be v26.11.0 now, since the change is included in that release (that technically isnt released yet but details schmetails, we can just wait with merging this until v26.11.0 is actually released)
Author
Member

done, fingers crossed

done, fingers crossed
stratself marked this conversation as resolved
silversys requested changes 2026-11-10 18:16:02 +00:00
Dismissed
@ -73,2 +89,2 @@
proxy:
ipv4_address: 10.10.10.30
- proxy
environments:
Member

singular environment

singular environment
stratself marked this conversation as resolved
@ -80,0 +114,4 @@
continuwuity:
# ...
network_mode: container:unbound
environments:
Member

singular environment

singular environment
stratself marked this conversation as resolved
@ -207,0 +310,4 @@
</Tab>
</Tabs>
While this approach is still usable, it tends to conflict with external tools managing `/etc/resolv.conf`. If you wish to switch to the new approach, simply configure your Continuwuity's `dns_servers` with the nameserver address(es) from your `/etc/resolv.conf` file. Docker users can also safely comment out the `./continuwuity-resolv.conf:/etc/resolv.conf` volume mount after doing so.
Member

unsure if we need to leave this all in (the old method), if we do i'd at least move this paragraph above all the configs

unsure if we need to leave this all in (the old method), if we do i'd at least move this paragraph above all the configs
Author
Member

Check preview page. It was added to elaborate on a recent change notice at the top

Check preview page. It was added to elaborate on a recent change notice at the top
Member

ah ok then lgtm

ah ok then lgtm
stratself marked this conversation as resolved
stratself force-pushed stratself/docs-dns-aerodynamic-upgrades from 7db88d790a
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 10s
Checks / Prek / Check changed files (pull_request) Successful in 7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m14s
to 219e1e7c38
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 57s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m45s
2026-11-13 12:46:21 +00:00
Compare
Author
Member
Preview: https://muc.muoi.me/guides/dns.html
stratself changed title from WIP: docs(dns): Document the new dns_servers option to docs(dns): Document the new dns_servers option 2026-11-13 13:01:54 +00:00
* docs(troubleshooting): Improve wordings on DNS intermittent section
* fix(docs,troubleshooting): Small wording fixes
chore(docs,dns): Apply appropriate version
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 14s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m43s
Checks / Prek / Check changed files (pull_request) Successful in 28s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
3126c4a857
stratself force-pushed stratself/docs-dns-aerodynamic-upgrades from 3126c4a857
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 14s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m43s
Checks / Prek / Check changed files (pull_request) Successful in 28s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
to 5a17ed9e56
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Checks / Prek / Check changed files (pull_request) Successful in 10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m56s
Update flake hashes / update-flake-hashes (pull_request) Successful in 2m23s
2026-11-14 13:51:33 +00:00
Compare
silversys approved these changes 2026-11-14 14:16:14 +00:00
nex removed this from the 26.11.0 milestone 2026-11-15 17:52:22 +00:00
stratself force-pushed stratself/docs-dns-aerodynamic-upgrades from 5a17ed9e56
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Checks / Prek / Check changed files (pull_request) Successful in 10s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m56s
Update flake hashes / update-flake-hashes (pull_request) Successful in 2m23s
to d8d7530eb3
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m14s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m49s
2026-11-15 19:55:02 +00:00
Compare
stratself requested review from Jade 2026-11-15 20:15:37 +00:00
@ -12,3 +14,2 @@
```txt title="/etc/resolv.conf"
nameserver 127.0.0.1
Starting from version v26.11.0, Continuwuity includes a `dns_servers` option to specify which resolver(s) to use. The previous instructions to edit your `/etc/resolv.conf` is now deprecated in favor of this new approach.
Member

"version v26.11.0" is a redundancy, use either "version 26.11.0" or "v26.11.0", also maybe link to the release.

"which resolver(s)" -> "which resolvers"

"The previous approach of editing your /etc/resolv.conf is no longer recommended. Prefer the new option where possible."

"version v26.11.0" is a redundancy, use either "version 26.11.0" or "v26.11.0", also maybe link to the release. "which resolver(s)" -> "which resolvers" "The previous approach of editing your `/etc/resolv.conf` is no longer recommended. Prefer the new option where possible."
stratself marked this conversation as resolved
@ -112,3 +141,3 @@
- Increase `discard-timeout` to something like `4800` to wait longer for upstream resolvers, as recursion can take a long time to respond to some domains. Continuwuity defaults to `dns_timeout = 10` seconds, so dropping requests early would lead to unnecessary retries and/or failures.
### Using a forwarder (optional)
Nix users may consult an example Unbound config [here][unbound-nix-federated-nexus], by QuadRadical
Member

missing period at the end of this paragraph

missing period at the end of this paragraph
Author
Member

After consideration I've removed the sentence until we have a few more config files ready to reference.

After consideration I've removed the sentence until we have a few more config files ready to reference.
stratself marked this conversation as resolved
@ -105,2 +127,3 @@
[Unbound][unbound] is the recommended resolver to run with Continuwuity. For Docker users, the `docker.io/madnuttah/unbound` image can be used - please consult the Documentation and example Compose files on their [Github repo][madnuttah-unbound-repo] to get started there.
After installation, you can tune `/etc/unbound/unbound.conf` values according to your needs. While Continuwuity cannot recommend a "works-for-everyone" Unbound DNS setup guide, the official [Unbound tuning guide][unbound-tuning-guide] and the [Unbound Arch Linux wiki page][unbound-arch-linux] may be of interest.
After installation, tune the parameters inside `unbound.conf` according to your needs. While Continuwuity cannot recommend a "works-for-everyone" Unbound config file, the following resources are of assistance:
Member

"are of assistance" -> either "are useful" or "will be of assistance"

"are of assistance" -> either "are useful" or "will be of assistance"
stratself marked this conversation as resolved
@ -155,1 +186,4 @@
### Technitium DNS
[Technitium DNS Server][technitium] supports recursion as well as a myriad of forwarding protocols, allows saving cache to disk natively, and does work well with Continuwuity. Its out-of-the-box configs however ratelimits single-IP requests by a lot, and hence must be changed.
Member

"Its default configuration, however, heavily ratelimits single-IP requests, so it must be adjusted accordingly."

"Its default configuration, however, heavily ratelimits single-IP requests, so it must be adjusted accordingly."
stratself marked this conversation as resolved
@ -185,2 +215,3 @@
As a rough stress test, restart your server with the `startup_netburst` option set to true (the default) to trigger a burst of DNS queries. If your resolver can handle this load without issue, then it is ready for regular Continuwuity activity.
To test connectivity against a specific server, use `!admin debug ping <SERVER_NAME>` and `!admin debug resolve-true-destination <SERVER_NAME>`.
To test connectivity against a specific server, use `!admin debug ping <SERVER_NAME>` and `!admin debug resolve-true-destination <SERVER_NAME>`. See the [intermittent connectivity](../troubleshooting.html#intermittent) troubleshooting section if you find issues federating out to said remote server.
Member

"federating out to your chosen remote server"

"federating out to your chosen remote server"
stratself marked this conversation as resolved
@ -196,3 +227,3 @@
- Consider employing **persistent cache to disk**, so your resolver can still run without hassle after a restart. Unbound, via [Cache DB module][unbound-cachedb], can use Redis as a storage backend for this feature.
- Consider [enabling **Serve Stale**][unbound-serve-stale] functionality to serve expired data beyond DNS TTLs. Since most Matrix homeservers have static IPs, this should still allow federating with them when upstream resolvers have timed out. For dnsproxy, this corresponds to its [optimistic caching options][dnsproxy-usage].
- Consider [enabling **Serve Stale**][unbound-serve-stale] functionality to serve expired data beyond DNS TTLs. Since most Matrix homeservers are on static IPs, this maintains federating with them even when upstream resolvers time out. For dnsproxy, this corresponds to its [optimistic caching options][dnsproxy-usage].
Member

"maintains federation with them"

"maintains federation with them"
stratself marked this conversation as resolved
@ -207,0 +242,4 @@
When using a custom resolver in `dns_servers`, Continuwuity will bypass the default Docker DNS resolver, and won't be able to resolve container hostnames such as those of [appservices](../appservices.mdx).
To work around this limitation, assign static IPs to the appservices, and refer to those addresses during registration:
Member

would it be worth mentioning the ability to forward hostname requests to the docker resolver? i assume not due to the configuration depending entirely on the bridge network's circumstances but just checking

would it be worth mentioning the ability to forward hostname requests to the docker resolver? i assume not due to the configuration depending entirely on the bridge network's circumstances but just checking
Author
Member

AFAICT, there is no software that forwards non-dotted hostnames to a different resolver. Maybe dnsmasq can do it but that's too specific.

Podman otoh inject container hostnames via search zones, so a forwarding rule for those zones may be considered. But that's a different stack now

AFAICT, there is no software that forwards non-dotted hostnames to a different resolver. Maybe dnsmasq can do it but that's too specific. Podman otoh inject container hostnames via `search` zones, so a forwarding rule for those zones may be considered. But that's a different stack now
@ -207,0 +313,4 @@
</Tab>
</Tabs>
While this approach is still usable, it tends to conflict with external tools managing `/etc/resolv.conf`. If you wish to switch to the new approach, simply configure your Continuwuity's `dns_servers` with the nameserver address(es) from your `/etc/resolv.conf` file. Docker users can also safely comment out the `./continuwuity-resolv.conf:/etc/resolv.conf` volume mount after doing so.
Member

"nameserver address(es)" -> "nameserver addresses"

"nameserver address(es)" -> "nameserver addresses"
stratself marked this conversation as resolved
@ -67,3 +67,3 @@
### Intermittent federation failures to a specific server {#intermittent}
There may be circumstances where servers fail to connect to each other, probably due to a bad DNS cache. In such cases, issuing `!admin debug ping <SERVER_NAME>` would return some errors, and `!admin query resolver cache <SERVER_NAME>` would return a wrong destination endpoint.
There may be circumstances where your server fail to send messages to another server, probably due to a bad DNS and destination cache. In such cases, issuing `!admin debug ping <SERVER_NAME>` would return some connectivity errors. Furthermore, running `!admin debug resolve-true-destination <SERVER_NAME>` with and without the `-n` flag would likely reveal different results.
Member

"server fails to send messages"

"server fails to send messages"
stratself marked this conversation as resolved
stratself force-pushed stratself/docs-dns-aerodynamic-upgrades from d8d7530eb3
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m14s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m49s
to d117a2e89a
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m8s
2026-11-21 13:42:18 +00:00
Compare
stratself force-pushed stratself/docs-dns-aerodynamic-upgrades from d117a2e89a
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 7s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m8s
to bc1109f02e
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 1m22s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m21s
Checks / Prek / Check changed files (pull_request) Successful in 32s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m32s
2026-11-23 17:43:20 +00:00
Compare
Author
Member

Note: Please ping if merged before !2531

Note: Please ping if merged before !2531
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 1m22s
Required
Details
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m21s
Required
Details
Checks / Prek / Check changed files (pull_request) Successful in 32s
Required
Details
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Required
Details
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m32s
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'stratself/docs-dns-aerodynamic-upgrades:stratself-stratself/docs-dns-aerodynamic-upgrades'
git switch 'stratself-stratself/docs-dns-aerodynamic-upgrades'
Sign in to join this conversation.
No milestone
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity!2491
No description provided.