- Find the server's public, stable IP (a reserved IP at your provider, so it does not change).
- Create an A record for the name (and an AAAA if you have IPv6).
- Optionally a CNAME
www→ the main name. - Wait for the TTL, then check
dig yourname +short. - Open ports 80 and 443 (provider firewall and the server's own), then start the web server; a server such as Caddy requests the certificate automatically once the name resolves to the machine.
Free dynamic-DNS names (for example DuckDNS) are fine for a personal site; with a static IP you do not need the update client. If the certificate request fails, check that the name resolves to this server and that port 80/443 is reachable from the internet.