Last updated: · By Asael Dreyer
In short: DNS (Domain Name System) is the system that translates a website name, like cw-servers.com, into the IP address of a server. Every time you visit a site or send an email, a computer asks DNS where to go. The answers are stored in records: A for the website, CNAME for an alias, MX for email and TXT for verification. I measured it on 7 Nov 2026: an answer from a cache came back in 5 to 19 milliseconds.
⏱ Reading time: about 8 minutes · Level: beginner · Last checked against the public DNS records of my own site: 7 Nov 2026
The short version, in numbers (measured on 7 Nov 2026 from a home connection):
| What I checked | Result |
|---|---|
| Name servers of my domain (NS) | Two Cloudflare servers, with a TTL of 86,400 seconds (one day) |
| A records of the site | 2 IPv4 addresses and 2 IPv6 addresses, all Cloudflare’s, with a TTL of 300 seconds |
| MX records for email | 3 records, with priorities 22, 24 and 63 |
| Response time from 1.1.1.1 (Cloudflare) | 5 to 19ms for a name already in the cache, 12 to 26ms for a random subdomain that was not cached |
| Response time from 8.8.8.8 (Google) | 52 to 61ms |
| Who runs a country-code suffix (the .il registry as an example) | The Israeli Internet Society, with 8 name servers (such as ns1.ns.il) |
What is DNS, in plain words?
DNS is the phone book of the internet. Computers communicate by numbers (IP addresses), and people remember names. DNS connects the two.
The system doesn’t live in one place. It is distributed across thousands of servers around the world, and each server is responsible for a different part of the name. The structure was defined back in 1987 in RFC 1034, and it still works on the same principle today.
Three terms you will meet in every DNS panel:
- Record: a single line in the database, for example “the website is at address X” or “email goes to server Y”.
- Name Server (NS): the server that holds the records for your domain and answers for it.
- TTL (Time To Live): how many seconds an answer may be kept in the cache before it has to be asked again.
How does a DNS query work, step by step?
When you type an address, the browser follows a fixed route. Most of the time it stops at the first or second step, which is why the answer arrives in milliseconds.
- Local cache: the browser and the operating system check whether this name was asked for recently and whether the TTL has not run out yet.
- Resolver: if there is no answer, the question goes to your internet provider’s server, or to a public one like Cloudflare’s 1.1.1.1 or Google’s 8.8.8.8. It also has a large cache.
- Root servers: if the resolver doesn’t know either, it asks the root servers. According to IANA there are 13 root server names, from a to m, and each of them is in practice a network of servers. They only answer “who is responsible for this suffix”.
- Suffix servers: the servers for the suffix (.com, or a country suffix like co.uk) point to the name servers of the specific domain. For example, a country suffix such as .il is managed by its national registry.
- The domain’s name server: it gives the final answer, for example the IP address from an A record, together with the TTL.
- Caching and return: the resolver keeps the answer for the length of the TTL and returns it to the browser. Only now does the browser contact the website’s server.
My measurement shows the cache at work: a name that was already in the cache of 1.1.1.1 came back in 5 to 19ms. The same question to 8.8.8.8 took 52 to 61ms from my connection. That is a measurement from one point on one evening, so treat it as an indication and not a performance test.
Which DNS records are there, and what does each one do?
There are dozens of record types, but for a business website and email, eight are enough to know. The basic record types are defined in RFC 1035, and Cloudflare collects an explanation of each type.
| Record | What it does | A useful example |
|---|---|---|
| A | Points a name to an IPv4 address | The main domain points to a server on Cloudways |
| AAAA | Like A, for an IPv6 address | Created automatically when the site is behind Cloudflare |
| CNAME | Makes one name an alias of another name | www points to the main domain, or to an address that Autonomous gives you |
| MX | Tells which server to deliver the domain’s email to | Google Workspace or Microsoft 365 |
| TXT | Free text for verification and policies | SPF, DKIM, DMARC and ownership verification in Google Search Console |
| NS | Which name servers the domain uses | Moving to Cloudflare changes the NS at the registrar |
| SOA | Administrative details of the zone, such as the primary server | You usually don’t touch it |
| CAA | Who is allowed to issue an SSL certificate for the domain | Lets only Let’s Encrypt issue one |
What does the DNS of a real site look like?
I queried the public DNS servers about my own domain on 7 Nov 2026. These are records anyone can see, so there are no secrets in them.
- NS: two Cloudflare name servers. That means I manage the records in Cloudflare, not at the registrar.
- A and AAAA: Cloudflare’s addresses, not those of my Cloudways server. This is a protected (Proxied) record: the visitor contacts Cloudflare, and Cloudflare contacts the server. That way the server’s address is not exposed.
- www: returns the same Cloudflare addresses. You don’t see a CNAME from the outside, because Cloudflare answers it directly.
- MX: three records. The number next to each is the priority: the lowest number gets the email first.
- TXT: one SPF record that authorizes three sending services, and two Google verification records.
What I found on my own domain, honestly: at the time of the check the domain had no DMARC record. That is exactly the mistake I warn about in the SPF, DKIM and DMARC guide, and it went onto my own fix list.
Want to check your own domain? On Windows, open a command prompt and type nslookup -type=mx example.com. On a Mac or Linux, type dig example.com MX. Replace MX with A, TXT or NS depending on what you are looking for.
What is TTL, and why doesn’t a DNS change update immediately?
TTL is the validity of an answer, in seconds. When it is 300, servers around the world can keep returning the old address for up to 5 minutes after you change it. When it is 86,400, it can take up to a day.
On my domain the site records are 300 seconds and the name servers are a full day. That is why a change to an A record is felt quickly, and a change of name servers takes longer. How to shorten the wait before a hosting move is in the guide how long DNS takes to update.
How are DNS, your website and your email related?
The website and the email use the same domain, but different records. That is why you can move the website to a new server without touching the email, and the other way around.
- The website: an A record for the main domain and a record for www. On Cloudways, you copy the server’s IP address into the A record. Full instructions are in the guide connecting a domain to Cloudways.
- Email: MX records that point to your email provider, and TXT records for SPF, DKIM and DMARC that keep your emails out of spam.
The most expensive mistake: you move the name servers to a new provider and forget to copy the MX records. The website works, but email stops arriving with no warning at all.
Who manages your DNS: the registrar, Cloudflare or Cloudways?
Whoever appears in the NS records is the one managing it. There are three common options for a site hosted on Cloudways:
| Where the DNS is | When it fits | What to know |
|---|---|---|
| At your registrar | A simple site with few changes | Free with the domain; the interface differs from registrar to registrar |
| Cloudflare on the free plan | Most business sites | Fast DNS, CDN and protection for free; you change the NS at the registrar |
| DNS Made Easy, as a Cloudways add-on | Agencies and sites that need failover | Paid per domain; the comparison is in DNS Made Easy vs Cloudflare |
A site on Cloudways doesn’t require you to change DNS provider. It is enough to update an A record wherever your domain is managed today.
The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
Common DNS mistakes and how to avoid them
A CNAME on the main domain: according to the standard, a name that has a CNAME may not have other records. The main domain always has NS and SOA, so you put an A record there. Cloudflare has a workaround called CNAME Flattening.
Two SPF records: only one SPF record is allowed per domain. When you add a new sending service, merge it into the existing record.
Changing a record and expecting the result immediately: the old TTL is still valid. Check against several servers, and clear your local cache before you decide something is broken.
A browser message that the name doesn’t exist: most often it is a typo, an expired domain or name servers that were never set up. The full explanation is on the page about the DNS_PROBE_FINISHED_NXDOMAIN error.
Frequently asked questions about DNS
DNS is a system that translates website names into the IP addresses of servers. It works like a phone book distributed across thousands of servers around the world. Without it you would have to remember numbers instead of names.
An A record points directly to an IP address. A CNAME record points to another name, and the lookup continues from there to an address. Use A for the main domain and CNAME for subdomains like www.
An MX record tells mail servers around the world where to send emails addressed to your domain. Each record has a priority number, and the lowest number goes first. If the record is missing or wrong, emails won’t arrive.
There is no single answer, because it depends on your internet provider and your location. On my home connection on 7 Nov 2026, Cloudflare’s 1.1.1.1 answered in 5 to 19ms and Google’s 8.8.8.8 in 52 to 61ms. Measure from your own connection before you switch.
Not by default. Cloudways gives your server an IP address, and you set an A record wherever your domain is managed: the registrar or Cloudflare. If you want managed DNS, you can add the paid DNS Made Easy add-on.
It depends on the record’s TTL. With a TTL of 300 seconds, most visitors will see the change within minutes. A name server change can take up to a day, because their TTL is longer.
Related guides
- Connecting a domain to Cloudways: the A record and the main domain
- Connecting a country-code domain from your registrar’s DNS
- How long DNS takes to update
- SPF, DKIM and DMARC: how to keep emails out of spam
- Web hosting glossary
- All guides on this topic: Domains and SSL
Sources: RFC 1034: Domain Names, Concepts and Facilities · RFC 1035: Implementation and Specification · IANA Root Servers · National registry (.il example): domains and DNS · Cloudflare: What is DNS · public DNS queries on my own domain, 7 Nov 2026. This guide was written and tested by Asael Dreyer · Updated: 7 Nov 2026
Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details