Short and Concise Guide to DNS

Adnan MukajAdnan Mukaj
2 min read

What is DNS?

Simply explained, DNS (Domain Name System) is a naming system for devices on the internet, from computers to servers to almost anything that is connected to the internet.

An example of DNS in action:

You want to go to Google Search. How do you accomplish that? You simply type in your navbar "google.com" and you're instantly there. You just used a DNS!
When you pressed enter, you sent a request to a DNS Server that you are looking for "google.com". That DNS server, went into a list and found "google.com" (it's actually more complicated than this), then sent you the "google.com" IP address that belongs to that domain.

💡
A popular way to think of a DNS is like a phonebook. You have a name and need to find a number (only in this case it's an IP).

Keep in mind that your browser can only connect to IP addresses, not domains. This is why we need the DNS to help us find the right IP address to connect to when we look for a domain.

DNS Records

A DNS Record is an instruction that is placed on authoritative DNS Servers that provides certain information regarding a domain to help handling of requests to that domain. There are a few types of DNS Records but usually these matter most:

A Record
The A is for "Address" and this record indicated the IP of a domain. This is the most basic record and most domains have an A record (usually one but there can be more), that points to a specific IP address for that domain. This record helps create the "phonebook" functionality that helps DNS servers find the IP for that domain.
AAAA Record
Almost identical to the A Record, the only difference being that A Records use IPv4 whereas AAAA Records use IPv6 addresses.
CNAME Record
The "canonical name" record points from an alias domain to another domain. This is used when you want to have an alias to a domain. So if you want example.com to actually point to example.net, you can do that. But keep in mind that CNAME records can only point to domains, not IP addresses.
TXT Record
TXT stands for "text" (obviously), and was originally used just to store notes/text but now it is mostly used for email spam prevention and to verify ownership of a domain.
0
Subscribe to my newsletter

Read articles from Adnan Mukaj directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Adnan Mukaj
Adnan Mukaj