Hands-on VPS & self-hosting Monday, June 1, 2026
VPS.app
Hands-on VPS benchmarks and self-hosting guides — tested, not theorized.
Self-Hosting Guides

How to Point a Domain to a VPS (DNS A Record, 2026)

Some links below are affiliate links: if you buy through them I may earn a commission at no extra cost to you. I only recommend what I have actually tested, and it never changes my verdict.

DNS and network routing to a server

Every self-hosting guide assumes your domain already points at the server. Here’s that step, start to finish.

Step 1 — Find your VPS IP

Your provider’s dashboard shows the public IPv4 address, or run on the server:

curl -4 ifconfig.me

Step 2 — Create an A record

In your domain registrar’s DNS settings, add:

TypeNameValueTTL
A@ (root)your.server.ip3600
Acloud (subdomain)your.server.ip3600

@ points the root domain; a name like cloud creates cloud.yourdomain.com. Add one A record per subdomain you’ll use (cloud, photos, vault, n8n…), all pointing at the same IP — the reverse proxy sorts out which app each one reaches.

Step 3 — Wait for propagation

Changes usually take effect within minutes but can take a few hours. Lower the TTL beforehand if you expect to change records often.

Step 4 — Verify

dig +short cloud.yourdomain.com   # should print your server IP
# or: ping cloud.yourdomain.com

Once it resolves, you’re ready to add HTTPS with Nginx Proxy Manager and deploy apps like Nextcloud.

Need a VPS first?

If you don’t have a server yet, start here: Best VPS for Self-Hosting. Budget pick Hetzner , managed pick Cloudways , and for cross-border use cases see the VPS for China access guide.

Frequently asked questions

A record vs CNAME — which do I use?

Use an A record to point a domain or subdomain straight at the VPS's IPv4 address. Use a CNAME only to alias one hostname to another hostname, not to an IP.

How long until DNS changes take effect?

Often minutes, but it can take up to a few hours depending on TTL and your resolver's cache. Lower the TTL before making changes if you want faster propagation.

Do I need a domain to self-host?

You can reach apps by IP, but you need a domain to get free HTTPS certificates and clean URLs. Domains are cheap — register one and point it here.