From c6f2f711de9b33d2e4b9660584d59eaf676b9f3d Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Fri, 31 Jul 2015 18:05:33 +0100 Subject: [PATCH] Mention AAAA as well as A records; remark on default port 8448 for no-SRV fallback --- specification/30_server_server_api.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/specification/30_server_server_api.rst b/specification/30_server_server_api.rst index 48434075..f3490eeb 100644 --- a/specification/30_server_server_api.rst +++ b/specification/30_server_server_api.rst @@ -59,10 +59,13 @@ and an optional TLS port. .. ** -If the port is present then the server is discovered by looking up an A record -for the DNS name and connecting to the specified TLS port. If the port is -absent then the server is discovered by looking up a ``_matrix._tcp`` -SRV record for the DNS name. +If the port is present then the server is discovered by looking up an AAAA or +A record for the DNS name and connecting to the specified TLS port. + +If the port is absent then the server is discovered by looking up a +``_matrix._tcp`` SRV record for the DNS name. If this record does not exist +then the server is discovered by looking up an AAAA or A record on the DNS +name and taking the default fallback port number of 8448. Home servers may use SRV records to load balance requests between multiple TLS endpoints or to failover to another endpoint if an endpoint fails.