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
pull from: stratself/continuwuity:stratself/docs-dns-aerodynamic-upgrades
merge into: continuwuation:main
continuwuation:main
continuwuation:renovate/ruma-digest
continuwuation:aranje/illegal-car-mods
continuwuation:nex/fix/modernise-knocking
continuwuation:jade/rendevous-channel-fixes
continuwuation:nex/feat/notary-server
continuwuation:ginger/oauth-idempotency
continuwuation:renovate/nix-0.x
continuwuation:renovate/axum-server-0.x
continuwuation:renovate/opentelemetry-instrumentation-tower-digest
continuwuation:renovate/built-0.x
continuwuation:jade/soundness-issues
continuwuation:jade/jemalloc-issues
continuwuation:nex/feat/mimimimimalloc
continuwuation:aranje/delete-unauthenticated-profile-media
continuwuation:nex/feat/per-room-txn-queue
continuwuation:release/26.9.4
continuwuation:nex/refactor/ruma-state-res
continuwuation:pulls/2398
continuwuation:release/v26.9.2
continuwuation:ginger/client-credentials
continuwuation:ginger/msc4322-2media2redaction
continuwuation:nex/feat/reorganise-commands
continuwuation:nex/feat/lockfree-event-builder
continuwuation:nex/fix/local-event-current-state
continuwuation:nex/feat/admin-api
continuwuation:jade/mass-rename
continuwuation:nex/feat/msc-fed-bidi-ping
continuwuation:nex/feat/centralise-remote-memberships
continuwuation:morgan/arm64-runner
continuwuation:renovate/argon2-0.x
continuwuation:next/meta/disable-ci-build-cache
continuwuation:fix/26.7.3
continuwuation:1235-add-arm-deb
continuwuation:nex/meta/release-schedule
continuwuation:nex/feat/pdu-versions
continuwuation:ginger/revert-direct-tls
continuwuation:nex/fix/federated-invite-revoke
continuwuation:nex/fix/plunger
continuwuation:jade/perf/gme-rebased
continuwuation:nex/perf/get-missing-events2
continuwuation:nex/backport/v0.5.11
continuwuation:nex/backport/v0.5.10-backport
continuwuation:nex/feat/msc4491-invite-reasons-in-room-creation
continuwuation:nex/feat/deprecated-room-versions
continuwuation:release/v0.5.9
continuwuation:nex/feat/enable-debug-log-release-builds
continuwuation:nex/feat/room-purging
continuwuation:nex/feat/room-shutdown
continuwuation:ginger/ruma-upstreaming
continuwuation:jade/tls-backends
continuwuation:ginger/email-fixes
continuwuation:jade/changelog-labels
continuwuation:nex/fix/v12-publishing
continuwuation:jade/build-info
continuwuation:jade/purge-sync-tokens
continuwuation:ginger/terms-and-conditions
continuwuation:ginger/remove-sliding-sync-proxy
continuwuation:nex/fix/pusher-association
continuwuation:ginger/email-support
continuwuation:jade/community-guidelines
continuwuation:nex/fix/federation-format
continuwuation:jade/git-deps-updates
continuwuation:jade/changelog-check
continuwuation:jade/rust-1-92
continuwuation:ginger/password-reset
continuwuation:nex/experiment/push-gateway-logs
continuwuation:ginger/msc3575-obliteration
continuwuation:nex/feat/block-busted-rooms
continuwuation:nex/fix/informative-startup-errs
continuwuation:ginger/no-left-room-initial-sync
continuwuation:jade/docker-entrypoint
continuwuation:jade/dehydrated-devices
continuwuation:ginger/complement-fixes
continuwuation:nex/fix/stale-destination-cache
continuwuation:nex/experiment/sync-mutex
continuwuation:tcpipuk/docker-docs
continuwuation:jade/snafu
continuwuation:jade/rand-update
continuwuation:nex/stateres-refactor
continuwuation:ginger/779-in-troubleshooting
continuwuation:jade/liveit-guide
continuwuation:jade/http3
continuwuation:nex/feat/admin-hide-empty-rooms
continuwuation:ginger/oobe
continuwuation:nex/fix/debian-thingy
continuwuation:jade/ldap-admin-check
continuwuation:nex/fix/remote-restricted-joins
continuwuation:nex/feat/msc4406-sender-ignored
continuwuation:jade/deadlock-detection
continuwuation:jade/get-started
continuwuation:jade/docs-guide
continuwuation:ginger/fix-local-invites
continuwuation:nex/fix/tpi
continuwuation:nex/feat/room-deletion
continuwuation:nex/feat/msc4322-media-redaction
continuwuation:ginger/stitched-order
continuwuation:ginger/deps/update-rspress
continuwuation:jade/admin-announce-improvements
continuwuation:ginger/xtask-improvements
continuwuation:jade/improve-admin-config-display
continuwuation:nex/fix/better-stateres-error-logs
continuwuation:jade/sender-timeouts
continuwuation:nex/feat/custom-v12-room-ids
continuwuation:ginger/update-metadata
continuwuation:nex/feat/admin-force-logout
continuwuation:tom/max-perf-docs
continuwuation:nex/fix/invalid-appservice-reg
continuwuation:nex/feat/antispam
continuwuation:nex/feat/account-locking
continuwuation:jade/logging-cleanup
continuwuation:jade/remove-legacy-appservice-auth
continuwuation:nex/fix/key-query
continuwuation:jade/update-prek
continuwuation:nex/fix/room-summaries
continuwuation:ginger/restrict-admin-commands
continuwuation:ginger/enable-console-by-default
continuwuation:jade/tag-fixes
continuwuation:jade/otlp
continuwuation:nex/meta/pull-req-template
continuwuation:nex/fix/fed-invite-compliance
continuwuation:nex/feat/build-commit
continuwuation:nex/feat/join-logging
continuwuation:jade/mailmap-updates
continuwuation:jade/hack-ci-tmp
continuwuation:jade/v12-stable
continuwuation:jade/relations
continuwuation:ginger/database-refactor
continuwuation:jade/fix-ldap-uiaa
continuwuation:nex/fix/validation
continuwuation:ginger/nuke-invalid-msc4133-fields-in-migration
continuwuation:ginger/downgrade-artifact-actions
continuwuation:oddlid/reload-fix
continuwuation:jade/fix-assert
continuwuation:ginger/sync-v3-cleanup
continuwuation:ginger/remove-absolute-action-urls
continuwuation:jade/website
continuwuation:nex/fix/backoff
continuwuation:ginger/fix-mdbook-for-0.5
continuwuation:ginger/no-docker-on-prs
continuwuation:backport/v0.5.0-rc.8-1
continuwuation:nex/fed-improvements
continuwuation:jade/rust-1.90
continuwuation:jade/mirror-dockerhub
continuwuation:jade/clippy-fixes
continuwuation:jade/fix-support
continuwuation:jade/clean-images
continuwuation:jade/wal-compression-type
continuwuation:jade/flake-clone
continuwuation:ginger/upload-rpms-on-schedule
continuwuation:nex/fix/incoming-fetch
continuwuation:nex/fix/upgrade
continuwuation:tom/ci-fedora-rpm
continuwuation:jade/ci-release-fix
continuwuation:jade/rocksdb-10-5
continuwuation:ginger/fix-msc4133-migration
continuwuation:ginger/migrate-busted-tz
continuwuation:hydra/public
continuwuation:nex/feat/manual-extremities
continuwuation:nex/feat/async-media
continuwuation:nex/feat/fast-joins-hack-do-not-use-DO-NOT-USE
continuwuation:nex/feat/better-logging
continuwuation:trigger-ci-so-latest-isnt-on-illegal-car-mods
continuwuation:nex/feat/pins-backfill
continuwuation:jade/tuwunel-2025-06-old
continuwuation:jade/ai-slop-db-docs
continuwuation:nex/fix-create-auth
continuwuation:jade/version-stats
continuwuation:jade/read-receipts
continuwuation:jade/rust-toolchain-no-targets
continuwuation:jade/logging-features
continuwuation:jade/syncv5-typing
continuwuation:jade/msc2815
continuwuation:morguldir/see-eye
continuwuation:jade/css-small-screen
continuwuation:nex/wip-751
continuwuation:tuwunel-rebase
continuwuation:test
continuwuation:oddlid/rename-admin-room-bot
continuwuation:strawberry/nix-ci-stuff
continuwuation:strawberry/valgrind
continuwuation:phonemain
continuwuation:strawberry/morgs-snake-sync-jason-main
continuwuation:newer-media-endpoints
continuwuation:folly-coroutines-async-io
continuwuation:federation-retry-timer-port
continuwuation:bad-attempt-at-extracting-homeserver-signing-key
continuwuation:room-deletion-attempt-do-not-use
No reviewers
Labels
Clear labels
Abandoned
This pull request appears to be abandoned by its author.
Blocked
This pull request or issue is currently blocked from being merged/closed
Bug
Something isn't working as intended
Changelog
Added
Changelog entry added
Changelog
Missing
No changelog when one is needed
Changelog
None
Changelog is unnecesary for this change
Cherry-picking
Commits picked from other conduit projects
Compliance
This item pertains to spec compliance
Database
This requires or includes changes to the database
Dependencies
Something dependency related
Dependencies/Renovate
Automatic dependency upgrades by Renovate
Difficulty
Easy
Low difficulty to implement - touches few parts of the codebase, low complexity
Difficulty
Hard
High difficulty to implement - touches many parts of the codebase, high complexity
Difficulty
Medium
Medium difficulty to implement - touches more parts of the codebase, higher complexity
Documentation
Improvements or additions to documentation
Enhancement
New feature or request
Good first issue
Good for newcomers
Help wanted
Additional eyes and keyboards are required for this one
Inherited
Issues that have been inhereted from the project pre-fork
Matrix/Administration
Features pertaining to homeserver administration
Matrix/Appservices
Features pertaining to the appservice API
Matrix/Auth
Features pertaining to authentication
Matrix/Client
Features pertaining to client-to-server interactions
Matrix/Core
Issues relating to core matrix functionality, such as state resolution and PDU formats
Matrix/E2EE
Issues related to end to end encryption
Matrix/Federation
Features pertaining to server-to-server interactions
Matrix/Hydra
Issues related to room version 12 and related changes (temporary label)
Matrix/MSC
Features pertaining to unstable matrix features
Matrix/Media
Features pertaining to media interactions
Matrix/T&S
Changes or issues related to trust & safety tooling
Merge
This PR is ready to be merged
Merge/Manual
This PR should be manually merged
Merge/Squash
This PR should be squashed when it is merged
Meta
Related to housekeeping, maintenance, or other repo-meta.
Meta/CI
Issues related to CI changes
Meta/Packaging
Packaging
Priority
Blocking
This issue is blocking the next release
Priority
High
This issue is very important
Priority
Low
This issue is of a rather low priority
Security
This item is related to general security
Status
Confirmed
This issue has enough information and is confirmed
Status
Duplicate
This issue or pull request already exists
Status
Invalid
This issue doesn't seem right
Status
Needs Investigation
This issue needs further investigation
Support
Questions or support requests
bob the builder
pdu logic rewrite starring nexus nicholson
Archived
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
Loading…
Reference in a new issue
No description provided.
Delete branch "stratself/continuwuity:stratself/docs-dns-aerodynamic-upgrades"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
dns_serversoption 4d0e2bcfd3dns_serverswith options de7e78a5eadns_serversoption instead of mountingresolv.confe101067a58@ -12,3 +14,2 @@```txt title="/etc/resolv.conf"nameserver 127.0.0.1Starting 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.(comment to remember to change this to whatever release it gets included in)
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)
done, fingers crossed
@ -73,2 +89,2 @@proxy:ipv4_address: 10.10.10.30- proxyenvironments:singular environment
@ -80,0 +114,4 @@continuwuity:# ...network_mode: container:unboundenvironments:singular environment
@ -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.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
Check preview page. It was added to elaborate on a recent change notice at the top
ah ok then lgtm
7db88d790a219e1e7c38Preview: https://muc.muoi.me/guides/dns.html
WIP: docs(dns): Document the newto docs(dns): Document the newdns_serversoptiondns_serversoption3126c4a8575a17ed9e565a17ed9e56d8d7530eb3@ -12,3 +14,2 @@```txt title="/etc/resolv.conf"nameserver 127.0.0.1Starting 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."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.confis no longer recommended. Prefer the new option where possible."@ -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 QuadRadicalmissing period at the end of this paragraph
After consideration I've removed the sentence until we have a few more config files ready to reference.
@ -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:"are of assistance" -> either "are useful" or "will be of assistance"
@ -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."Its default configuration, however, heavily ratelimits single-IP requests, so it must be adjusted accordingly."
@ -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."federating out to your chosen remote server"
@ -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]."maintains federation with them"
@ -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: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
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
searchzones, 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."nameserver address(es)" -> "nameserver addresses"
@ -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."server fails to send messages"
d8d7530eb3d117a2e89ad117a2e89abc1109f02eNote: Please ping if merged before !2531
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.