How the Web Works: DNS, Domain Hierarchy and Record Types

Search for a command to run...

Thank you Joshua for this informative post!
In this series, I am going to be describing a broad range of concepts of networking like DNS, Networks, HTTP, etc
What is the OSI Model? The OSI model (or Open Systems Interconnection Model) is a conceptual model created by ISO (International Organization for Standardization) which allows many different types of systems to communicate together. The OSI model con...
During in the process of reverse engineering binaries, a common problem arises. How do I reverse engineer stripped binaries? There are no symbols to break on, offsets change, scripts don't work, and you ask yourself why am I doing this? Luckily there...

When I was learning how to tackle pwn challenges in CTFs, I had a tough time finding a single, clear guide that could show me the ropes of actually carrying out these exploits. That's why I decided to put together a complete guide that covers everyth...

Using python to capture and project data

Intro This is a write-up for PicoCTF 2022: Buffer Overflow 1. This is one of my favourite challenges to do. I recommend solving it for yourself before you read this write-up. What is a Buffer Overflow? Before we get started we need to first know what...

What is a BadUSB? A BadUSB is a USB device that acts as a keyboard and injects preprogrammed keystrokes into a computer. A BadUSB is Indistinguishable from a generic keyboard, making it near impossible to detect and patch. You can setup reverse shell...

Domain Name System (DNS) is a simple way to communicate with devices on the internet without remembering the specific IP address. A simple way of explaining it, is that a domain is the address for your house. But a more complicated way of explaining it is: all websites have an IP, google has an IP of (142.250.70.206). It would be hard to remember all those random numbers. This is when a DNS comes in and simplifies the process. Now all you have to remember is google.com. Quick note, all domain name registrations are overseen by the ICANN (Internet Corporation for Assigned Names and Numbers](https://www.icann.org/)).
The root domain, also known as the zero-level domain, is the highest level of any DNS system. It is signified by a "." at the end of a domain. Even if you don't type the dot in, most browsers will just internally add it in. The world has 13 sets, not a singular server but many server clusters, of main DNS servers managed by ICANN around the world. Root domains do not have IP's for websites like google.com. But what they do contain is the server address's to Top-Level-Domains like .com.
TLDs will always be at the end of your domain. Some examples of TLD's are .com, .net, .xyz. TLDs are allocated by ICANN. There are two main types of TLD.
ccTLD is a country-specific domain extension given out by ICANN during the conception of domains. Some examples are:
gTLD's just depicts what websites are used for. Most websites use the gTLD of .com, like facebook.com or hashnode.com.
Using hashnode.com as an example, the TLD is .com but the Second-Level Domain is hashnode. When registering domains, Second-Level Domains are limited to 63 characters + the Top-Level Domains and can only use a-z, 0-9, and hyphens (cannot start or end with hyphens or have consecutive hyphens).
Subdomains are on the left-hand side of the Second-Level-Domain using a period to separate them. An example would be admin.hashnode.com. In www.hashnode.com, www is considered a subdomain. it's a subdomain traditionally used to indicate that a site is part of the web. A Subdomain split does have the same character restrictions as Second-Level-Domains but you can have multiple subdomains like jupiter.servers.hashnode.com. But the total amount of characters has to be 253 characters or less.
DNS is just only for websites, they have many more uses. These are some of the most common records.
This record holds the IPv4 address.
This record holds the IPv6 address.
Forwards to another domain, does not provide an IP address.
Directs to an email server.
Lets admins store text. Can be used for blocking certain email addresses.
I am just touching the surfaces of DNS, I encourage you to do a bit of your own research. I will probably write about the HTTP protocol next. Thanks for reading, have a good one.
https://tryhackme.com/room/dnsindetail https://www.cloudflare.com/en-au/learning/dns/dns-records/ https://www.wpbeginner.com/beginners-guide/beginners-guide-what-is-a-domain-name-and-how-do-domains-work/ How a DNS Server (Domain Name System) works.