Skip to content

Point DNS at the host

The two records a PDS needs, the ports to open, and how to check both before you install.

View Markdown
Use with AI

Take the context you need.

Browse the llms.txt indexView all docs as MarkdownChoose a bundle or get started

Add two records at your DNS provider. Both point at the host.

Name Type Value
pds.example.com A 203.0.113.10
*.pds.example.com A 203.0.113.10

Add AAAA records with the same names when the host has a public IPv6 address.

The wildcard matters. An account’s handle, alice.pds.example.com, is a host name of its own: apps resolve it to find the account’s DID, and Caddy fetches a certificate for it the first time a client asks. Without the wildcard, handles do not resolve.

Wait until both answers are right. A DNS change takes a few minutes to spread.

Terminal window
dig +short pds.example.com
Terminal window
dig +short anything.pds.example.com

Each prints 203.0.113.10.

Open ports 80 and 443 in the host’s firewall and in your provider’s firewall, if it has one. Port 80 serves the certificate challenge and the redirect to HTTPS; 443 serves everything else. The Compose server listens on port 3000 inside its network. Native examples use port 2583, blocked from public access by the host firewall. Send public traffic through the TLS proxy; keep metrics and operations listeners private.

Next: choose a build, then install with Nix or a binary or Docker Compose.