Keep closer to DNS SRV spec
This commit is contained in:
@@ -10,7 +10,7 @@ mxisd is currently in read-only mode and use a priority lookup strategy with sev
|
||||
Given the 3PID `john.doe@example.org`, the following would be performed in priority order until a mapping is found:
|
||||
- LDAP: lookup the Matrix ID from a configurable attribute.
|
||||
- DNS: lookup another Identity Server using the domain part of an e-mail and:
|
||||
- Look for a SRV record under `_identity._matrix._tcp.example.org`
|
||||
- Look for a SRV record under `_matrix-identity._tcp.example.org`
|
||||
- Lookup using the base domain name `example.org`
|
||||
- Forwarder: Proxy the request to other identity servers (`matrix.org` and `vector.im` currently hardcoded).
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class DnsLookupProvider extends RemoteIdentityServerProvider {
|
||||
log.info("Domain name for {}: {}", threePid, domain)
|
||||
|
||||
log.info("Performing SRV lookup")
|
||||
String lookupDns = "_identity._matrix._tcp." + domain
|
||||
String lookupDns = "_matrix-identity._tcp." + domain
|
||||
log.info("Lookup name: {}", lookupDns)
|
||||
|
||||
SRVRecord[] records = (SRVRecord[]) new Lookup(lookupDns, Type.SRV).run()
|
||||
|
Reference in New Issue
Block a user