In this tutorial
Where do DNS records get edited?
At the DNS provider for your domain, which is usually the registrar where you bought it unless you moved the nameservers elsewhere. The BitcoinVPS console gives you the addresses; the records themselves live with that provider. Find out who answers for your domain:
dig +short NS example.netThe nameservers listed there are the ones whose control panel you need. Changes made anywhere else have no effect.
Which records point a site at the server?
Two records for the bare domain, one for www, all using the addresses from Overview:
example.net. 300 IN A 198.51.100.24
example.net. 300 IN AAAA 2001:db8:4f2a::24
www.example.net. 300 IN CNAME example.net.- A maps a name to the IPv4 address.
- AAAA maps it to the IPv6 address. Add it only when your services listen on IPv6, which Caddy and most servers do by default.
- CNAME makes www follow whatever the bare domain points to, so a later move needs one change instead of two.
In most panels the bare domain is written as @ and the TTL as seconds.
Which TTL value fits a record?
300 seconds while you are setting up or about to move servers, 3600 or more once things are stable. Resolvers keep a cached answer for as many seconds as the TTL allows. A short value makes changes visible fast; a long value means fewer lookups and slightly quicker first visits.
Remember that lowering a TTL only takes effect after the old TTL has expired. If a record had 86400, lower it a full day before a planned move. The migration tutorial builds on this.
How can I confirm a new record has propagated?
Ask the authoritative server first, then public resolvers.
sudo apt-get install -y dnsutils # provides dig on Ubuntu, Debian
dig +short A example.net @$(dig +short NS example.net | head -n1)
dig +short A example.net @1.1.1.1
dig +short AAAA example.net @9.9.9.9
dig +short CNAME www.example.net @8.8.8.8The first line shows what your provider publishes right now. If that is correct but a public resolver still returns an old value, it is caching; wait out the TTL. If the authoritative answer is wrong, the change did not save, or you edited the wrong zone.
From the server itself, confirm the domain resolves back to its own addresses:
curl -4 -s ifconfig.me; echo
getent ahosts example.netWhich extra records are worth adding?
A few small records help with certificates and verification.
- CAA limits which certificate authorities may issue for your domain. Caddy uses Let's Encrypt by default and can fall back to ZeroSSL, so allow both:
example.net. 3600 IN CAA 0 issue "letsencrypt.org" example.net. 3600 IN CAA 0 issue "sectigo.com" - TXT records prove ownership to search consoles and other services. Add them as given, quotes included.
- Wildcard records like
*.example.netsend every subdomain to the server; useful for per-customer subdomains, but each one still needs its own certificate unless you use DNS challenge.
What about mail and reverse DNS?
Treat outgoing mail as something to ask about first. Port 25 availability is not something to assume, so open a support ticket before planning a mail server on the instance. Receiving mail through a third party with MX records pointing at that party works without touching the VPS at all.
Reverse DNS (the PTR record that maps an IP back to a name) is not set from the console. If you have a concrete need for it, ask in a support ticket and include the address and the hostname you want. Check what is set today with:
dig +short -x 198.51.100.24How do subdomains map to several instances?
Give each service its own name with its own records. A common layout for a small project spread over two cities:
app.example.net. 300 IN A 198.51.100.24
app.example.net. 300 IN AAAA 2001:db8:4f2a::24
api.example.net. 300 IN A 203.0.113.80
status.example.net. 300 IN A 203.0.113.81Each instance then runs its own web server with its own certificate. Splitting by name lets you move one service at a time later without touching the others.
What are the usual DNS mistakes?
Most problems trace back to one of these:
- A CNAME on the bare domain. Standard DNS forbids it next to other records; use A and AAAA at the apex.
- An AAAA record pointing at an address where nothing listens on IPv6. Visitors on IPv6 networks then fail while IPv4 users are fine. Test with
curl -6 -I https://example.net. - Typos in the IPv6 address. Copy it from Overview instead of retyping.
- Old records left behind after a move, such as a stale AAAA pointing at the previous server.
- Editing records at the registrar while the nameservers point to a different provider.
Questions about this tutorial
Does BitcoinVPS host DNS zones?
No. Records are managed with your registrar or DNS provider. The console shows the IPv4 and IPv6 you need to enter there.
How long does DNS propagation take?
New names are usually visible within minutes. Changed records follow once resolvers drop their cached copy, which takes up to the old TTL.
Is an AAAA record worth adding?
It is recommended because every instance has IPv6, but only add it if your service listens on IPv6. Caddy does by default.
Can I set a PTR record myself?
Reverse DNS is not self-service. Ask in a support ticket with the address and the name you want.
Should www be a CNAME or an A record?
A CNAME to the bare domain is easier to maintain. An A and AAAA pair also works if your provider prefers it.