Understanding the Domain Name System (DNS): A Starter's Guide


The internet is a giant network of interconnected computers. As we increasingly rely on the internet, it is important to understand how the underlying infrastructure works.
One crucial component is the Domain Name System (DNS).
Computers are built to communicate in and understand numbers. They use these numbers to recognize and connect with one another within networks.
If this is so, how do we as humans recognize and communicate with computers? This is the job of a Domain Name System (DNS)
What is a DNS?
DNS is a naming system that translates human-readable domain names (like example.com) into the numerical IP addresses that computers use to communicate. This allows us to easily access websites without having to remember long strings of numbers.
A DNS takes alphanumeric domain names (or “hostnames”) and turns them into numeric IP addresses. Essentially, DNS servers act as translators connecting the human-readable domain names we cherish to the numerical IP addresses that computers can comprehend.
When you input a web address into your browser, it is forwarded to a DNS server from your router, where it's then dissolved and returned as an IP address.
A Domain Name is a human-readable address used to access websites on the internet e.g. example.com
A domain name is typically broken down into several parts, each serving a specific purpose:
- Top-Level Domain (TLD):
- Definition: The last segment of a domain name, appearing after the final dot.
- Examples: .com, .org, .net, .uk.
- Purpose: Indicates the type or location of the domain.
- Second-Level Domain (SLD):
Definition: The main part of the domain name, located directly to the left of the TLD.
Example: In example.com, example is the SLD.
Purpose: Often represents the name of the organization, business, or entity.
- Subdomain:
Definition: An optional part of the domain name that appears before the SLD.
Example: In blog.example.com, blog is the subdomain.
Purpose: Used to organize different sections of a website or to create separate sites under the same domain.
How does DNS work?
When you type a domain name into your browser, your device sends a DNS query to a resolver, usually managed by your internet service provider (ISP).
The resolver then contacts a root server, which directs it to the appropriate Top-Level Domain (TLD) server (e.g., .com server).
The TLD server then points the resolver to the authoritative name server for that specific domain.
The authoritative name server provides the IP address associated with the domain name.
The resolver then returns the IP address to your browser, allowing it to connect to the website.
What is a DNS Record
DNS records (also known as zone files) are the instructions that live on authoritative DNS servers, providing detailed information about a domain.
These records consist of a series of text files written in a specific DNS syntax, which tells the server how to handle requests for that domain.
Types of DNS Records
A domain name and its matching IP address is called a “DNS record”.
The most common types of DNS records include:
A Record: The ‘A’ in A Record stands for ‘address.’ This is the most popular DNS record type. Its function? Connecting your website domain or subdomain names, such as example.com or blog.example.com, to a numerical IPV4 address such as 127.0.0.1. Think of this as the home address of your website. This maps a domain name (e.g., example.com) to an IPv4 address, essentially connecting the domain to its "home" on the internet.
AAAA Record: Similar to the A record, but it maps the domain to an IPv6 address instead. IPv6 is the newer, expanded version of the internet's address protocol.
- CNAME Record: This allows you to point one domain name (like www.example.com) to another domain name, acting as an alias. This is useful for setting up subdomains or redirects.
- MX Record: The "Mail Exchanger" record specifies which mail servers should receive email for that domain, enabling proper email delivery.
- TXT Record: This allows you to add custom text-based information to a domain, such as verification codes or SPF (Sender Policy Framework) data to help prevent email spoofing.
Each DNS record also has a "time-to-live" (TTL) value, which indicates how often the record should be refreshed or updated on DNS servers around the world.
By understanding and optimizing these records, website owners, IT professionals, and digital strategists can ensure that their online presence is not only accessible but also resilient, adaptable, and primed for success.
Understanding the basics of DNS is crucial for anyone working with websites, domains, or internet infrastructure.
Subscribe to my newsletter
Read articles from Aishat Oshileye directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
