matrix-org / matrix-federation-tester

Tester for matrix federation written in golang.
77 stars 17 forks source link

All green report for v4 and v6 even if well-known is only reachable via v6 #121

Closed MTRNord closed 2 years ago

MTRNord commented 2 years ago

Describe the bug Due to a config bug, I had v4 not working on the domain but working on the subdomain well-known was pointing at. (Aka missing A record on the main domain).

However, as the well-known had been resolved via v6, the fedtester incorrectly reported everything was fine. Instead, it should at least warn about the fact that the well-known file cannot be resolved via v4.

To Reproduce Have an AAAA only record on the main domain where well-known is at, and a and AAAA one on the domain it points to.

Expected behavior Fedtester warns or reports that well-known cannot be reached while the server itself can. As this will break fed for v4-only servers trying to talk to this server.

Screenshots image

richvdh commented 2 years ago

dup #103 I think

MTRNord commented 2 years ago

dup #103 I think

Yep. Though with a different cause. #103 assumes there are dns records for both and only then it fails. While this assumes one dns record is missing entirely.