Keep closer to DNS SRV spec

This commit is contained in:
Maxime Dor
2017-02-09 13:12:18 +01:00
parent 208d0b9efa
commit d3d790f00b
2 changed files with 2 additions and 2 deletions

View File

@@ -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).

View File

@@ -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()