Network and domains
How to point a domain name to your server
A, AAAA and CNAME records in plain words, how long changes take, and how to check that your domain answers.

A domain name is a label. DNS is the directory that says which server the label leads to. Pointing a domain at your server means adding one or two entries to that directory. This guide shows which ones, how long they take, and how to check them. The examples use example.com and the server address 203.0.113.10.
The records you will meet
| Type | What it does | Example value |
|---|---|---|
| A | Points a name to an IPv4 address | 203.0.113.10 |
| AAAA | Points a name to an IPv6 address | 2001:db8::10 |
| CNAME | Makes a name an alias of another name | example.com. |
| MX | Says which server receives email for the domain | 10 mail.example.com. |
| TXT | Holds text: ownership checks, email policies | "v=spf1 mx -all" |
For a website on your own server, the A record does almost all the work.
Pointing the domain
- Find your server’s IP address. It is on the Services page of your client area. On the server,
ip -4 addrshows it too. - Open the DNS settings of the domain, at the company where it is registered or wherever its nameservers are.
- Create an A record for the domain itself. The name is usually written
@and means “example.com with nothing in front”. The value is the IP address. - Create a record for
www. Either another A record with the same address, or a CNAME pointing toexample.com.
| Type | Name | Value | TTL |
|---|---|---|---|
| A | @ | 203.0.113.10 | 3600 |
| A | www | 203.0.113.10 | 3600 |
A subdomain works the same way: an A record named app makes app.example.com lead to whatever address you give it, which can be a different server.
How long does it take?
Each record has a TTL, “time to live”, in seconds. It tells resolvers around the world how long they may remember an answer before asking again.
- A new record is usually visible within minutes, because nobody has an old answer cached. The exception is a name that was looked up just before its record existed: resolvers remember “no such name” for a while too.
- A changed record takes up to its old TTL to be seen everywhere. With a TTL of 3600, allow an hour.
- A change of nameservers is slower, and is where the old “24 to 48 hours” advice comes from.
Planning to move a site? Lower the TTL to 300 a day in advance. The switch then takes five minutes, and you can raise it again afterward.
Check the result
On macOS or Linux:
dig +short example.com A
dig +short www.example.com A
On Windows:
nslookup example.com
Both should print your server’s address. To see what the rest of the world sees rather than your own resolver’s cache, ask a public resolver directly:
dig +short example.com A @1.1.1.1
Common mistakes
- A CNAME on the bare domain. The DNS standard does not allow a CNAME alongside the other records that
example.comitself must have. Use an A record there. - A leftover AAAA record. If an old IPv6 record still points elsewhere, visitors with IPv6 go to the old place while you test happily over IPv4. Remove it or update it.
- Editing DNS in the wrong place. Records only count at the nameservers the domain actually uses. Check with
dig +short NS example.com. - A proxy in between. If the domain goes through a CDN or protection service, the public answer is that service’s address, not your server’s. That is expected.
- Expecting DNS to open ports. DNS only says where the server is. The web server and the firewall still have to accept the connection.
Next step
With the name pointing at the server, add a web server and a certificate: Host a website on a VPS with Nginx and free HTTPS. Need a name first? Search for a domain.
Sources and further reading
Read nextTwo guides to follow this one.
All network and domains guides
Network and domainsUnmetered vs metered vs unlimited bandwidth, explainedPort speed, traffic quotas, overage fees and “fair use”: how to read a bandwidth offer and estimate what you need.
Privacy and policyDMCA takedowns explained, and what DMCA-ignored hosting meansHow a DMCA notice works, why hosts suspend first and ask later, and what “DMCA-ignored” hosting does and does not cover.
Your own server, in a few minutes.
Cloud VPS from $3.99 a month: no email, no ID, crypto payment, root access in minutes.
- No KYCNo email, no ID
- No DMCANotices not acted on
- Crypto friendlyBTC, ETH, XMR, USDT, SOL
- UnmeteredOn every plan