What is DNS?
Computers find each other with IP addresses. People remember names. DNS is the translation between the two.
If you type mikandho.se, the computer asks a DNS server which IP address that name corresponds to, gets an answer, and connects there. It takes milliseconds and happens hundreds of times a day without anyone noticing.
Why it turns up in troubleshooting
"It's always DNS" is an inside joke among technicians, and there is something to it.
If DNS is not working, it does not matter that the internet is otherwise up. The computer does not know where to go. The symptom is that nothing works, even though everything actually does, which we go through in more detail in The internet is down.
A quick test: if 1.1.1.1 works in the browser but google.se does not, the network is up and DNS is down.
The DNS records you own yourselves
Your domain has a set of records, and they control more than most people think.
The A record points the domain at the website's address.
The MX records say where email to your domain should be delivered. If they are wrong no mail arrives, and you notice straight away.
The TXT records contain, among other things, SPF, DKIM and DMARC, which decide whether your email is let through or ends up in the junk folder.
Changes in DNS take time to come into effect, often a few hours. That is because the answers are cached, and that time is set by something called TTL. It is the explanation for a change that "didn't take" when someone checks ten minutes later.
What is worth knowing as a business owner
Who owns your domain? It should be your company, not a former web agency and not an employee's private account. This always gets discovered at the wrong moment, usually when someone wants to switch supplier.
Turn on two-factor at the domain registrar. If someone gets into your domain they can move both web and email somewhere else, and then the rest of your security matters less.
Do not let the domain expire. A company I know of lost its domain because the invoice went to an employee who had left. It was bought up within a day, and they had to pay a five-figure sum to get it back.
Next part: slow Wi-Fi, and why the problem is rarely the speed you pay for.
Other parts in this series:
- Secure Wi-Fi
- What is an IP address?
- What is a port?
- What is DNS? (this article)
- Slow Wi-Fi
- The internet is down
- What does the internet actually see of you?