In this chapter
01From name to number: why DNS exists
Monday morning, nine o'clock. A firm's website opens blank, email is not arriving, the phone starts ringing. No virus, no server failure: the domain expired on Friday, and the renewal notice was going to a mailbox nobody reads anymore. It happens more often than you might think, and it can be avoided by knowing a few mechanisms. Let's start at the beginning.
Computers connected to the Internet recognize each other by numbers, IP addresses: something like 203.0.113.10 in the older version (IPv4), or a long sequence of digits and letters separated by colons in the newer one (IPv6). People, on the other hand, remember names. No customer would type a string of numbers to find your firm, while they remember yourcompany.it effortlessly.
The DNS (Domain Name System) is the service that bridges the two: it receives a name and returns the number of the server to contact. It was described in 1987 in two technical documents, RFC 1034 and 1035, which are still the foundation of everything today. It is, quite literally, the street directory of the Internet.
In the chapter on professional web infrastructure I described the house, meaning the server. Here I describe the address and the road to get there: what you buy when you buy a domain, what happens in the milliseconds between the moment someone types your name and the moment they see the page, and which mistakes in this chain bring down a website or the email of an entire company.
How to read an address
A web address is read from right to left, from the general to the specific, like a postal address written backwards. Each dot separates a level:
- the extension (in jargon TLD, top level domain) is the last part:
.it,.com,.eu,.ro; - the name is the part you register: it is yours as long as you renew it;
- the subdomain is everything in front of it:
www, but alsobook.yourcompany.itormail.yourcompany.it. You do not buy it: you create it yourself with a DNS record; - the path after the slash has nothing to do with DNS: it is the page inside the site, and the server decides it.
02Registry, registrar and registrant: who owns the name
A domain is not bought forever: it is registered for a period, usually one or more years, and renewed. There are four players in the chain, and it is useful to know them all because each has a different role:
- ICANN is the international nonprofit organization that coordinates the system of names and addresses worldwide;
- the registry runs a single extension and keeps the official list of registered names. For
.itit is the Registro .it, based in Pisa at the Institute of Informatics and Telematics of the CNR (the Italian National Research Council); - the registrar is the provider you turn to in order to register the name, often the same one that sells hosting and email;
- the registrant is whoever holds the right to use the name: it must be your business, with its own details.
Don't get this wrong
It often happens that the domain is registered by whoever builds the website, in their own name, “for convenience”. Everything works as long as the relationship works. The day you want to change provider, you discover that the address you printed on business cards, vans and shop windows is not yours. Who manages it is a choice; whose name it is registered in is not. I cover this at length in the chapter on who really owns your website.
Expiry: the most trivial and most costly risk
A domain that is not renewed stops working: website, email, everything. After expiry there is usually a period in which the former registrant can still recover it, then the name becomes free again and anyone can register it, including people who buy expired names to resell them. Three precautions are enough to avoid the risk:
- turn on automatic renewal with a payment method that does not expire next month;
- keep the registrant's contact email up to date, because that is where the notices arrive;
- note the expiry date somewhere another person in the company can see it too.
03Resolution: four questions in a few milliseconds
When someone types your address, their computer does not know where the server is. It has to ask, and it does so through a chain of questions called resolution. It is worth following it step by step, because it explains almost all the “mysterious” behavior of domains.
1
The resolver
The computer asks the resolver, usually the one from the Internet provider. If it has the answer in memory, it replies immediately.
2
The root
If it does not know, the resolver asks a root server: “who knows the names in .it?”. The root does not know your address, but it knows whom to call.
3
The extension
The .it servers reply: “yourcompany.it is managed by these authoritative servers”. Still no number, but the road is the right one.
4
The authoritative server
Your domain's authoritative server gives the real answer: the IP address. The resolver delivers it and keeps it in memory.
Put this way it sounds long, but it happens in a few tens of milliseconds, and almost never in full: every link keeps in memory the answers it has already received. Your Internet provider's resolver already knows who manages .it, because thousands of people asked it a minute ago. The browser itself and the operating system also keep recent answers.
The root servers are identified in the system by 13 names, from the letter a to m, run by 12 different organizations. Behind each name there are in fact many machines scattered around the world, answering at the same address: that is why the root of the Internet does not go down when a single computer fails.
The authoritative server is the one that matters to you: that is where your domain's records live, and whoever has access to the panel where they are edited decides where the website and email go. Which servers are your authoritative ones is communicated to the registry through the NS records, usually with a couple of clicks in the registrar's panel.
Quiz
Who answers whom?
Choose one answer for each question: the explanation appears immediately.
Who really knows your website's IP address?
The root and the extension only know whom to turn to; the real answer is in the authoritative server's records.
How many names identify the root servers?
There are 13 names run by 12 organizations; behind each name there are many machines around the world.
Why does a second visit to the site not repeat the whole cascade?
Browser, operating system and resolver reuse the answers until the TTL expires.
Where do you tell the registry which servers are your authoritative ones?
The NS records state who is in charge of the domain; they are changed from the registrar's panel.
04DNS records: the domain's identity card
On the authoritative server, your domain is described by a list of lines called records. Each record has a name (which address it refers to), a type (what it says), a value and a TTL (how long others may keep it in memory). It is an identity card: whoever reads it knows where the website lives, where to deliver email, who is authorized to send on your behalf.
| Type | What it says | Example of use | If it's wrong |
|---|---|---|---|
| A | the server's IPv4 address | the website on a VPS | the site does not open, or the old one opens |
| AAAA | the server's IPv6 address | the same site for IPv6 networks | some visitors get through, others do not |
| CNAME | “this name is an alias of that other one” | www pointing to the main name, an external service on a subdomain | the subdomain leads to the wrong place |
| MX | which servers to deliver email to, in order of priority | the business mailbox | incoming emails get lost or bounce back |
| TXT | free text read by other services | SPF, DKIM, DMARC, Google verifications | emails end up in spam, verifications fail |
| NS | which servers are authoritative for the domain | moving DNS management from one provider to another | all records stop working at once |
| CAA | which authorities may issue certificates for the domain | limiting certificates to one chosen authority | the certificate renewal is refused |
TXT records and email
Three TXT records decide whether the emails you send land in the inbox or in spam: SPF (which servers may send on behalf of the domain), DKIM (the cryptographic signature of messages) and DMARC (what to do with emails that fail the checks). They are so important that they have a chapter of their own, the one on professional business email. Here it is enough to know where they live: in the same identity card of the domain, next to the website's record.
Subdomains: different doors of the same house
With a record you create a subdomain, and each subdomain can point to a different server: the showcase website on a hosting plan, book.yourcompany.it on the portal's VPS, shop.yourcompany.it on an external platform. It is also one of the ways to organize a website in several languages, along with folders (/ro/) and national domains: I compare the pros and cons of each choice in the chapter on the multilingual website.
A common technical mistake
The “bare” domain (yourcompany.it, with nothing in front) cannot have a CNAME if it also has other records, and it always does: at least NS and almost always MX. The standards do not allow it. That is why the main name uses an A record (or an alternative offered by the DNS provider), while www can be an alias.
Words from this chapter
The little dictionary of domains
Tap a card to flip it.
05The TTL and the famous “propagation”
When a record is changed, the person who just edited it sees the new website, the colleague next to them still sees the old one, and a customer on the other side of Italy sees one or the other depending on the time. People say the DNS is “propagating”, as if the change had to travel. In reality nothing travels: memories expire.
Every record has a TTL (Time To Live), expressed in seconds. A resolver that received an answer with a TTL of 3600 can reuse it for an hour without asking again. If you changed the address five minutes later, that resolver will keep giving the old one for another 55 minutes. Multiply that by the millions of resolvers in the world, each with its own expiry, and you have “propagation”.
How to move without gaps
The TTL is the lever for moving a website or a mailbox from one server to another without outages. The procedure I follow is always the same:
- One or two days before, lower the TTL of the records that will change (for example to 300 seconds, five minutes). You have to wait for the old, long TTL to expire, so that the memories are updated.
- Prepare the new server and test it before moving the name, for example by forcing the address on your own computer.
- Change the record: within a few minutes almost everyone sees the new server.
- Keep the old server running for a while longer, for late requests.
- Once the move is complete, raise the TTL again: a high value lightens the servers' workload and makes the domain more resilient.
This procedure also applies when moving from shared hosting to a VPS, the transition I describe in the chapter on web infrastructure. With email it requires extra care: the MX record must be moved, and SPF and DKIM must be updated for the new sending server, otherwise outgoing emails look suspicious for days.
06HTTPS: the encrypted conversation and the padlock
Once the server is found, the browser starts talking to it. With the old HTTP the conversation traveled in the clear: anyone on the same network (a café's Wi-Fi, a compromised router) could read passwords and forms, or even change the page as it arrived. HTTPS is the same HTTP inside a channel encrypted with the TLS protocol, and it solves three problems at once:
- confidentiality: what the browser and server exchange cannot be read by anyone in between;
- integrity: nobody can modify the page or the data along the way without the browser noticing;
- authenticity: the server proves, with a certificate, that it really belongs to the domain written in the address bar.
The handshake
Before exchanging the page, browser and server carry out a short negotiation called the handshake. In the current version of the protocol, TLS 1.3, a single round trip is enough: the browser proposes how to encrypt, the server replies by choosing and presenting its certificate, both calculate a secret key that nobody has ever transmitted, and from that moment everything travels encrypted.
The certificate and the chain of trust
The certificate is a digital document that binds the domain name to a cryptographic key, signed by a certificate authority. The browser does not know your certificate, but it already knows a list of root authorities it trusts: if your certificate is signed by an intermediate, and the intermediate by a root on the list, the chain holds and the page opens without warnings.
Today a certificate for a website no longer costs anything: Let's Encrypt, a nonprofit authority, issues them for free and automatically. Its certificates last 90 days and are renewed by a program that does it on its own, usually every 60 days. The trend across the whole industry is toward ever shorter lifetimes: the CA/Browser Forum, the body that brings together certificate authorities and browser makers, approved in 2025 a gradual reduction of the maximum certificate lifetime from 398 to 47 days, in stages between March 2026 and March 2029. The upshot: a certificate renewed by hand once a year is a way of working that is coming to an end. Renewal must be automatic.
What the padlock says, and what it doesn't
The padlock in the address bar means that the connection is encrypted and that the server really belongs to the domain written there. It does not mean the site is honest: even a scam page can have a valid certificate for its scam domain. That is why you have to read the address, not just glance at the padlock: yourcompany.it and yourcompany-payments.com are two different owners.
True or false?
The myths about domains and padlocks
Decide for each statement: true or false?
The padlock in the address bar guarantees the site belongs to an honest company.
It guarantees encryption and a match with the domain, not the honesty of whoever runs it.
A DNS change “propagates” by traveling from one server to another.
Nothing travels: the resolvers' memories expire one after another, according to the TTL.
A valid HTTPS certificate can be free.
Authorities like Let's Encrypt issue them for free, with automatic renewal.
Whoever registers the domain for you automatically becomes its registrant.
The registrant is whoever appears in the registration details: you need to check that it is your business.
With and without www are, for Google, two different addresses.
That is why you choose one version and redirect the other with a 301.
The last three precautions
- Permanent redirect: all variants of the address (with and without
www, withhttpand withhttps) must lead with a 301 redirect to a single version. For search engines, a site reachable from four different addresses is four sites competing with each other. - HSTS: a header with which the server tells the browser “from now on, with me, speak only HTTPS”. It also closes the very first instant in which the connection might start in the clear.
- No mixed content: an HTTPS page that loads an image or a script over HTTP loses part of its protection, and browsers block or flag those pieces.
07The mistakes that bring a website down (and how to avoid them)
Almost all the trouble with domains and certificates comes from a few recurring mistakes. Knowing them is the cheapest way not to live through them.
What happens
- Expired domain: website and email disappear together, suddenly.
- MX records deleted while moving the website: incoming email stops, and nobody notices for days.
- Expired certificate or one valid only for
www: the browser shows a red warning page. - NS changed without copying the records: all the domain's services stop at the same moment.
- Long TTLs during a move: for hours half the customers see the old website.
How to prevent it
- Automatic renewal, up-to-date contact email, expiry date marked on the calendar.
- Before touching anything, export or take a screenshot of all existing records.
- Automatic certificate renewal, covering both the main name and
www. - Recreate all the records at the new provider before changing the NS.
- Lower the TTL one or two days before, raise it again afterwards.
A well-managed domain is never noticed. It gets noticed the day email stops arriving, and that is usually a Monday.
Test yourself
Is your address really under control?
Frequently asked questions
How long does it take for a DNS change to show?
It depends on the TTL of the record you changed: resolvers keep the old answer until it expires. With a TTL of one hour, within an hour almost everyone sees the new value; with a TTL of one day it may take a day. Lowering the TTL before a change shortens the wait.
Can I have the domain with one provider and the website with another?
Yes. The domain's DNS records just need to point to the second provider's server. You can also hand DNS management to a third service by changing the NS records at the registrar.
Do you have to pay for an HTTPS certificate?
For the vast majority of websites, no: authorities like Let's Encrypt issue free certificates that renew automatically. Paid certificates make sense for particular needs, such as certain organization checks required by contracts or specific sectors.
Does the padlock mean a website is trustworthy?
It means the connection is encrypted and the server really belongs to the domain in the address bar. It says nothing about the honesty of whoever runs the site: that is why you need to read the domain name carefully.
Is the address better with or without www?
Both work; what matters is choosing one and redirecting the other with a 301. The www version is a subdomain and can therefore use a CNAME, which the bare domain cannot: that is why many people, myself included, choose www as the main address.
What happens if the domain expires?
Website and email stop working. For a period, which depends on the extension and the registrar, the former registrant can still recover it; then it becomes free again and anyone can register it.
Sources
- RFC 1034, “Domain Names – Concepts and Facilities” and RFC 1035, “Domain Names – Implementation and Specification”: the foundations of DNS, records and TTL.
- IANA, “Root Servers”: the 13 names of the root servers and the 12 organizations that run them.
- ICANN and Registro .it (in Italian): the global coordination of names and the registry of the Italian extension.
- RFC 8446, “The Transport Layer Security (TLS) Protocol Version 1.3”: the handshake in a single round trip.
- Let's Encrypt, frequently asked questions (in Italian): free certificates, 90-day lifetime and renewal recommended every 60 days.
- CA/Browser Forum, Ballot SC-081v3: the reduction of the maximum certificate lifetime from 398 to 47 days between March 2026 and March 2029.
- MDN, “Strict-Transport-Security” and MDN, “Mixed content” (in Italian).
Chapter updated October 2026. IP addresses, server names and times in the plates are examples, taken from the ranges the standards reserve for documentation; the redirect behavior of zenithdevelop.com was checked on October 22, 2026.