-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Federation DNS Lookup fails for healthy domain #5831
Comments
synapse does not (normally) use twisted.names (see also #5053). I think this must be specific to your setup, given the number of people that federate with matrix.org and have never reported this. What does your |
It seems it's more complicated and sometimes twisted.names is used.
That isn't what she said there. Nevertheless I'd be surprised if this was https://twistedmatrix.com/trac/ticket/9691, and something specific to your environment seems more likely. |
My resolve.conf content was simply
I linked the matrix room chat, she said Synapse uses Python getbyaddress() or something, instead of twisted's implementation. I found out that I am getting nslookup timeout error when I do repeated nslookup. (Maybe my provider rate-limits the DNS outbound query as some sort of DDoS mitigation). In any case, Synapse certainly performs repeated lookup due to federation. So I installed systemd-resolved which caches the lookup result, and I have no more problems. Probably it is specific to my setup, but Synapse's failure mode when dns lookup is rate-limited is not well defined here. I'd think Synapse might want to rate limit the DNS query or cache it. |
No, what she actually said was:
that is an aspiration, not a statement of fact. In practice twisted.names is used sometimes.
It can't ratelimit DNS without ratelimiting outgoing requests. That's basially #5373. Caching is something that should be done by your system, not synapse. Installing |
Hi,
I am getting significant amount of DNS lookup failures message in my Synapse log.
(excerpt only for readability reason)
Matrix.org can be resolved correctly on the host system:
I am not sure if Synapse uses twisted.names for resolving hostname to IP address,
Issue #1002 seem to indicate so, but @hawkowl at #synapse-dev room said this is not the case.
If twisted.names is indeed used, there is some weird behavior I noticed by which
gethostbyname()
refuses to work with combination of some domain and resolver (https://twistedmatrix.com/trac/ticket/9691).Is this even reproducible on other HS setup?
The text was updated successfully, but these errors were encountered: