What are DNS and DNS records?
When someone types the address of a site, DNS is what tells the browser where to go. This guide explains what DNS is, what records are, which record type does what, and why a change does not show up right away.
What to know first
- DNS
- The phone book of the internet: it translates a name like myapp.co.il into the address of the server where the site lives.
- DNS record
- One line in the phone book of the domain: a single instruction, such as where the site points or where email arrives.
- Domain registrar
- The company through which the domain was registered and is held in your name.
What DNS is
Computers find each other by numbers (IP addresses), and people remember names. DNS translates between the two: when someone types myapp.co.il, the browser asks DNS which numeric address matches that name, and then goes to the right server.
Every domain holds a list of instructions like this. The list sits with the name servers of the domain, and whoever manages them can edit it.
Records: the types worth knowing
A record is a single instruction. The most common types:
A: points a name at the IP address of a server. This is how the domain leads to the site.
CNAME: points one name at another name. Common for www or for outside services.
MX: says where to deliver mail sent to addresses on the domain. Without it, email on the domain does not arrive.
TXT: free text. Used to prove ownership of a domain, and for email protections such as SPF and DKIM.
Every record also has a "time to live" (TTL): how long others may remember the answer before they ask again.
Why a change takes time
So that the network does not stand in line, servers all over the world remember DNS answers for a while. So after a change there is a period, from a few minutes to a few hours, when some visitors see the old and some see the new. This is normal, and there is nothing to do but wait.
When you plan a move, you can lower the time to live in advance, so the change spreads faster.
How not to break your site or your email
The important rule: do not delete a record if you do not know what it does. A deleted MX record stops the email, and a deleted A record takes the site down.
Before you change anything, take a screenshot or write down the existing records, so you can go back.
With us, a domain whose DNS we manage has a "DNS records" page: you add records there, edit and delete them, and you can also apply a ready-made template of a mail provider. NS and SOA records, and the A records of a site connected to us, are marked "Managed by us" because they keep the site live. A domain that was connected by pointing records at the registrar stays managed there, and you change its records at the registrar.
Try it now
If you have a domain, open the management page of the registrar or of the DNS and look at the records, without changing anything. Try to spot which record points the site and which one handles the email.
If you can explain what an A record does and what an MX record does, and why a change does not show up right away, that is enough to connect a domain with confidence.
If it did not work
- A change you made does not show? Wait a few hours, and try opening the site in a private browsing window or from your phone.
- Email stopped arriving after a change? Check that the MX records were not deleted or replaced.
- Not sure which record to change? Contact us, and we will do it together.
Check yourself
Answer in your head first, then open. After all the answers, a star is waiting on the route.
What is DNS, in one line?
The phone book of the internet: it translates the name of a site into the address of its server.
Which record decides where email arrives?
The MX record.
Common questions
What is the difference between an A record and a CNAME record?
A points a name at an IP address. CNAME points one name at another name, and from there it continues to the address.
Why does the site still show the old version after a change?
Because servers along the way remember the old answer for a while. It usually goes away within a few hours.
What are SPF and DKIM?
Email protections that are set as TXT records. They help mail servers recognize that a message really was sent from your domain.
Do I need to understand DNS to connect an address to a site with you?
No. When you connect an address to us, we set the records it needs. What you learn here is useful when you want to add a service, such as email.