DNS Protocol Explained | TryHackme DNS in Detail
The Domain Name System (DNS) makes it easier for us to connect with devices on the internet without needing to memorize complicated numbers. Just as every house has a unique mailing address, every computer on the internet has a distinct identifier known as an IP address. An IP address consists of four groups of numbers between 0 and 255, separated by periods, like 104.26.10.229. Since remembering these complex numbers isn’t practical, DNS simplifies this process. Instead of recalling an IP like 104.26.10.229, you can simply remember a website name like tryhackme.com.
Domain Hierarchy
Top-Level Domain (TLD)
A Top-Level Domain (TLD) is the last segment of a domain name. For example, in tryhackme.com, the TLD is .com. There are two main types of TLDs:
gTLD (Generic Top-Level Domain): Originally used to indicate the purpose of a website. For instance:
ccTLD (Country Code Top-Level Domain): Used to represent specific countries or regions, such as:
Due to growing demand, many new gTLDs have been introduced, including .online, .club, .website, and .biz. Currently, there are over 2,000 TLDs available.
Second-Level Domain (SLD)
In a domain like tryhackme.com, tryhackme is the Second-Level Domain (SLD), while .com is the TLD. When registering a domain, the SLD must:
Subdomain
A subdomain appears to the left of the Second-Level Domain, separated by a period. For example, in admin.tryhackme.com, admin is the subdomain. The rules for creating a subdomain are the same as for an SLD:
Multiple subdomains can be combined, like jupiter.servers.tryhackme.com, but the entire domain name must not exceed 253 characters. There’s no limit to how many subdomains you can create for a domain.
DNS Record Types
DNS isn’t limited to resolving website addresses — it supports various record types for different functions. Here are some of the most common DNS records you might encounter:
A Record (Address Record)
AAAA Record (IPv6 Address Record)
CNAME Record (Canonical Name Record)
领英推荐
MX Record (Mail Exchange Record)
TXT Record (Text Record)
TXT records are flexible and can store any form of text data for different applications.
How Do DNS Requests Work?
When you enter a domain name, your computer first checks its local cache to see if it recently retrieved the address. If the address isn’t stored locally, your computer sends the request to a Recursive DNS Server.
Recursive DNS Server
DNS Resolution Process
Root DNS Servers:
TLD DNS Servers:
Authoritative DNS Server:
Returning the Result:
Time To Live (TTL)
This entire process happens in milliseconds, allowing you to access websites almost instantly!
TryHackme DNS in Detail| Room Answers
Room answers can be found here.
Video Walkthrough