Choosing a Domain Name for a Self-Hosted Site
Why this matters
A domain name is the one decision in a self-hosted project that is annoying to change. The server can move, the software can be replaced, the theme can be rewritten — but the name ends up in every link you have ever posted, in other people’s blog posts, and in the certificate that proves you are who you say you are.
Most of the advice about picking one is about aesthetics. The useful advice is narrower: which decisions are reversible, which are not, and which of them you only find out about when the certificate does not issue.
This is the setup behind the site you are reading, so everything below is something that actually happened here rather than a checklist.
What I tested on
- Domain: homelabspot.com, registered 2026-10-22, about $12/year
- DNS: DNSPod, two records — the apex and the www name
- Server: Tencent Cloud VM, US region, AMD EPYC 9754, 2 vCPU / 3.5 GB RAM
- Web server: Nginx 1.30.6 from the 宝塔 panel, HTTP/2 and HTTP/3
- Certificate: Let’s Encrypt, issued 2026-10-27

Step 1: Decide what the name is for
The question to answer first is not “which name do I like” but “what will this host be in five years”. A domain that names a provider — anything with vps, cloud or host in it, or a brand name you would not say out loud in five years — ties you to a decision about hosting that you have not made yet.
A domain that names a thing — the subject, the hobby, the kind of work — survives the move. That is why this one is named after what it publishes rather than after where it runs.
Step 2: The name that is hard to spell
Ask how someone who heard the name once would type it. Homelabspot is two ordinary words, which is the highest compliment a domain can earn. hlsp0t, home-lab-spot and homelab-spot.com are three different websites as far as a person typing from a phone is concerned, and one of them is the one you get traffic for.
Short is a tiebreaker only after this one. A long name that is easy to spell beats a short name that is not.
Step 3: Apex or www — pick one and redirect the other
This is the decision people defer and then get wrong twice. You need exactly one canonical name. The other has to redirect, permanently, to it.
This site serves the apex and redirects www to it. The response says so in one line:

Two things in that response matter more than they look.
HTTP/2 301 with a location header is a permanent redirect at the HTTP level — not a client-side script, not a meta refresh. That is the form search engines follow, and the form that does not split your signals across two URLs.
alt-svc: quic=":443" advertises that this same host speaks HTTP/3 over UDP. Browsers that support it use it on the next visit without being asked, which is why the port list for a site like this is not just “80 and 443” but “80, 443 and 443 over UDP”.
Step 4: Point DNS at the server, and wait
Two records are enough for a single-host site: an A record for the apex and a CNAME for www pointing at it. If the host has an IPv6 address, add the AAAA record too — the alternative is that IPv6-only visitors get nothing, and you will not find out from your own machine.
Then wait. This is the step that makes people think something is broken. Propagation is not one switch; different resolvers pick up a change at different times, and ACME validation deliberately checks from several places. If a certificate request fails immediately after you add the record, it did not fail — it checked before the record was visible.
Step 5: The certificate is where the two decisions meet
The certificate in the screenshot above is for www.homelabspot.com, issued on 27 October, expiring on 25 January — 90 days, which is what Let’s Encrypt issues for. Nginx serves it from the panel’s certificate directory.

The thing worth understanding is why a wildcard certificate is the reason to think about this early. A normal certificate is validated over HTTP — the ACME server fetches http://yourname/.well-known/acme-challenge/… and checks that the right token comes back. That only works if the name already resolves to something serving on port 80.
A wildcard certificate is validated over DNS instead: the ACME server looks for a TXT record under your domain. Nothing has to be serving yet, and one certificate covers every subdomain you will ever add. The cost is that DNS-01 needs API access to your DNS provider — for DNSPod, a token scoped to that one domain. That is a small thing to ask for, and a large thing to be glad you have when you add a second service six months later.
What to avoid
Do not serve both names. Two URLs for every page splits whatever signal you have, and the duplicate is the one you do not want indexed.
Do not put the redirect somewhere you will forget about. The location header above is in the vhost, next to the certificate, in the same file.
Do not put the year in the name. This is the only one that is not reversible at all.
Do not skip the wildcard. If you are going to run more than one thing on the same domain, the certificate that covers *.homelabspot.com is one configuration line and one DNS record. Getting it after the fact means redoing every host.
Verdict
The name itself is the easy part and the part you will agonise over. The useful part is the order: decide which name is canonical, point DNS at it, wait, and then get a certificate that covers everything you might add later.
Everything above is running on the machine that serves this site, and the two screenshots in it are the actual responses — the certificate as openssl reports it, the headers as curl receives them. The compose stack behind the domain is in the Docker guide, and what to watch when the whole thing goes dark is in the monitoring guide. The proxy in front of it is the subject of the reverse proxy head-to-head.
References
FAQ
Should I use .com or a cheaper TLD?
For a personal site, either works. What actually decides it is whether the name is short and unambiguous when said out loud, and whether you can get a wildcard certificate for it. Search engines do not care about the suffix — a .site or .dev ranks exactly like a .com one when the content is the same.
Do I need both example.com and www.example.com?
You need one canonical name and a redirect from the other. Pick one, point DNS at it, and make the other 301 to it. Serving both without a redirect splits your search signals and duplicates every URL, which is exactly what canonical tags exist to prevent.
How do I get a certificate that covers every subdomain?
Let's Encrypt issues wildcard certificates free, but only through DNS-01 validation — the challenge is a TXT record rather than an HTTP request. That is what makes a wildcard possible before the name even serves anything.
Does DNS propagation delay the whole setup?
Yes, and it is the reason people think their certificate failed. The ACME challenge record has to be visible to Let's Encrypt's own resolvers before it can be validated. Give it ten minutes and retry — do not delete the certificate, because the ACME account and its key are already stored.