Closed hex-m closed 4 years ago
It is working properly. Read https://matrix.org/docs/spec/server_server/r0.1.4#resolving-server-names.
To be more explicit: matrix.org uses a .well-known
, which is looked up before checking the SRV records. A lot of servers will have been using SRV and then migrated to .well-known
and have just left their SRV records up.
It is a bit confusing, and maybe the federation tester UI should have a little note about that, or display what SRV records were checked (if any).
Thanks!
So to clarify:
When a correct .well-known entry is found, the tester will always say "No SRV Records". In the chat.weho.st
example the SRV records are shown because the .well-known request was not successful.
We do a SRV lookup on the record returned by .well-known
(unless it contains an explicit port or IP), its just that most people don't use both a .well-known
and an SRV record :slightly_smiling_face:
I think this is a really confusing UX thuogh.
"No SRV records" to me means "we checked for the _matrix._tcp.
@daenney if you read the message just above, you’ll see it is not skipped entirely, it just doesn’t work how you think it does.
That's fair. But then the frontend is still a bit broken from my point of view. "No SRV records" should mean "we did the equivalent of dig -t SRV" and got a NODATA/NXDOMAIN.
I think what the frontend is trying to convey is "we didn't check for SRV records in this case, because we found a well-known that contained a host:port tuple". Which is perfectly reasonable, since that's how federation is specified to work.
Ah you have an explicit port. Opened a new issue at https://github.com/matrix-org/fed-tester-ui/issues/25.
I noticed that the tester did not seem to recognize my SRV records. Comparing with other servers it seems that the tester may have a bug? Big servers like matrix.org and tchncs.de are shown to have no SRV records.
But they actually do:
Interestingly, the SRV-record of chat.weho.st is recognized, although it looks exactly like the prior examples to me.