bluesky-social / atproto

Social networking technology created by Bluesky
Other
6.14k stars 431 forks source link

[Feature] Support SRV records for the PDS and for handle resolution #1657

Open UpcraftLP opened 12 months ago

UpcraftLP commented 12 months ago
This is in response to a discussion on the API Touchers discord.

Currently, it is possible to run a PDS on nonstandard ports by passing the port in the URL (http(s)://mydomain.tld:1234/), but handle resolution via /.well-known/ is an entirely unrelated mechanism and assumes standard ports for http(s).

This could be resolved by making use of DNS SRV records, which map a named service to a port.

Something like _atproto._tls.domain.tld maybe?

(note: the protocol part cannot be freely chosen on most DNS providers, ex. cloudflare only allows _tcp, _udp and _tls)

If the PDS also respects this, this would additionally allow for running a PDS on a domain that already has an (unrelated) webserver listening on ports 80/443.

bnewbold commented 12 months ago

A couple initial thoughts: