TRY_HACK_ME : DNS
Last updated
Last updated
DNS, or Domain Name System, is like the internet’s phone book. It translates user-friendly web addresses (like ) into computer-friendly IP addresses that help devices find each other on the internet.
DOMAIN HIERARCHY:
TLD (Top-Level Domain):Most right-hand part of a domain name (e.g., .com). Second-Level Domain:The part to the left of the TLD (e.g., tryhackme in tryhackme.com), limited to 63 characters.
Subdomain: Sits on the left side of the Second-Level Domain (e.g., admin in admin.tryhackme.com), created with the same restrictions, and can be used to create longer names like jupiter.servers.tryhackme.com; no limit to the number of subdomains.
What is the maximum length of a subdomain? 63
Which of the following characters cannot be used in a subdomain ( 3 b _ — )? _
What is the maximum length of a domain name? 253
Record: Resolves to IPv4 addresses (e.g., 104.26.10.229).
AAAA Record: Resolves to IPv6 addresses (e.g., 2606:4700:20::681a:be5).
CNAME Record:Resolves to another domain name, like store.tryhackme.com pointing to shops.shopify.com.
MX Record: Resolves to email server addresses, with priority flags for server order (e.g., alt1.aspmx.l.google.com).
TXT Record:Stores text-based data, used for various purposes like listing authorized email servers or verifying domain ownership.
3. DNS Resolution:The DNS resolver checks its cache for the IP. If not found, it queries authoritative DNS servers, starting from the root and moving down to the specific domain.
4. Response: The authoritative DNS server replies with the IP address, and the resolver stores it in its cache for future use.
1. User Input: User types a web address into the browser (e.g., ). 2. DNS Query:The browser sends a DNS query to a DNS resolver, asking for the IP address of the entered domain.
5. Page Load:The browser now uses the obtained IP address to connect to the web server, loading the requested page ().