bug: Continuwuity still queries DNS servers in /etc/resolv.conf even when dns_servers are present #2441
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
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
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2441
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What is the bug?
Continuwuity still leaks DNS to resolvers inside
/etc/resolv.conf, despite stuff being set insidedns_serversand accepted with!admin server show-config. I keep getting Matrix-related queries to my main DNS resolver, which ratelimits clients aggressively as it is meant for a different purpose. So this bug nullifies the benefits of thedns_serversvariable itself.Steps to reproduce
Spin up two Technitium instances: one used for
/etc/resolv.confon host, and one configured to be included in c10y'sdns_serversWatch dashboard/logs from both Technitiums. They both receive the starting netburst queries. Unsure about split but it's probably 50-50.
I've tested this on Podman in the following scenarios:
dns_serverspoint to another Technitium LAN IP on the same bridge networkpastanetwork mode, where c10y has anetwork_mode: container:continuwuity's-technitiumanddns_servers = [ "127.0.0.1" ]/etc/resolv.confto the continuwuity container in both of the above cases, they talk to thenameserverinside that conf file. This is where I do not think it is a container issue anymore.Server name and version
c10y main (
ddbdd1e)Additional context
As this still happens, I cannot rewrite docs to recommend using
dns_servers.cc @silversys
oh well thats just wonderful isnt it
ill take a look, thanks for the report
Question: What is the config value for
query_all_nameservers? It defaults to true, unless you've changed it to false. I'm unsure if its the culprit as I'm still looking, but it would be an easy thing to check.bug: Continuwuity still queries the ones into bug: Continuwuity still queries DNS servers in/etc/resolv.confeven whendns_serversare present/etc/resolv.confeven whendns_serversare present@silversys wrote in #2441 (comment):
this was answered in the room as true (just to ensure it's documented)
https://matrix.to/#/!c10y-8Hm3mAW99j9KEKoWPQH2M_FxGwG-EVHK06iLKg/%24DqJbqdvZ9esnYbA9lJJ_WqGER12whcX56ZAOIfwqJAc?via=explodie.org&via=gingershaped.computer&via=federated.nexus