Welcome to our deep dive into the fascinating world of DNS, IP, and Subnets! If you’ve ever wondered about the digital infrastructure that allows your computer to connect to the internet or how different systems communicate within a network, you’re in the right place. In this blog post, we’ll demystify these vital components of network architecture, breaking down complex concepts into digestible bits. Whether you’re a seasoned IT professional seeking a refresher or a curious layperson, you’ll find useful nuggets of information here. So, let’s embark on this journey together, exploring the nuts and bolts that keep the digital world spinning!
Domain Name Systems (DNS)

What is DNS?
DNS, short for Domain Name System, is often likened to the phone book of the internet. In the grand scheme of things, every device connected to the internet – from computers and smartphones to IoT devices – is identified via an IP address. But, let’s face it, remembering a string of numbers can be quite a challenge! That’s where DNS comes in. It translates human-friendly domain names, like www.example.com, into IP addresses, like 192.0.2.1, that computers use to identify each other on the network. This process, known as DNS resolution, is fundamental to our seamless navigation of the web. So, the next time you’re browsing your favorite site, remember the DNS working tirelessly behind the scenes!
The Role of DNS in Network Communication
In the grand landscape of network communication, DNS acts as a critical facilitator, enabling efficient data routing and server identification. When you type a URL into your browser, it’s actually the DNS servers that go to work, translating that URL into the IP address of the website’s server. This eliminates the need for users to remember complex numerical IP addresses. Moreover, DNS ensures that email reaches the correct destination server, aids in load balancing by distributing incoming requests across multiple servers, and helps in maintaining the accessibility of websites even when their IP addresses change. Through these indispensable roles, DNS effectively nourishes the backbone of network communication, ensuring we enjoy a smooth and uninterrupted online experience.
The DNS Hierarchy
The DNS hierarchy is a structured, multi-level tier system that enables the effective functioning of the overall DNS process. At the top of this hierarchy is the ‘root’, represented by a dot that appears at the end of all domain names. The root level contains all the top-level domains (TLDs), such as .com, .org, .net, etc. Next, we have the second-level domains, which are the names we typically register or buy, like ‘google’ in google.com. Following this, there are subdomains, which are divisions of these second-level domains. A good example is ‘mail’ in mail.google.com. This hierarchical structure facilitates a decentralized approach to storing DNS information, with each level holding information about the domain names in its purview. This makes DNS scalable and allows for effective load distribution across the internet.
IP Address

What is an IP address?
An IP address, or Internet Protocol address, is a unique string of numbers separated by periods that identifies each computer using the Internet Protocol to communicate over a network. It’s somewhat akin to a home address for your device and serves two primary purposes. First, it identifies the host, or network interface, and second, it provides the location of that host within the network. Much like how a postal address helps people find your apartment, an IP address helps computers find each other on the internet. They come in two versions – IPv4 and IPv6. The former is a series of numbers separated by periods (e.g., 192.168.1.1), while the latter, introduced to tackle the shortage of available IPv4 addresses, includes a series of numbers and letters (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
Types of IP Addresses
IP addresses can be classified into several types. Primarily, there are two versions of IP addresses – IPv4 and IPv6, as mentioned above. But besides these, IP addresses can also be classified based on their operational characteristics. Let’s delve into the main categories.
- Static IP Addresses: These are IP addresses that are fixed and do not change. They are manually assigned to a device and remain constant until they are manually altered.
- Dynamic IP Addresses: Contrary to static IP addresses, these are assigned by a network server each time a device connects to a network. They are temporary and change over time.
- Private IP Addresses: These are used within a network and are not valid on the internet. They’re typically used in local area networks (LANs) in residential, office, and enterprise environments.
- Public IP Addresses: These are unique across the entire web. They’re assigned by the ISP and are required for any online server that needs to be globally accessible.
So, while we commonly refer to IPv4 and IPv6, it’s important to understand that these can be further categorized into static, dynamic, private, and public IPs.
ALSO CHECK OUT OUR OTHER ARTICLES
- How to Configure WiFi Hotspot in Windows 7 Using Command Prompt
- Understanding SOS Only on iPhone (How to Fix)
- Guide on How To Reset Your Microsoft Outlook View
- How To Have No Profile Picture on TikTok in 2023
- How to Track Someone’s Location with Phone Number (+Top 10 Apps)
IPv4 vs. IPv6
IPv4 and IPv6 are two versions of Internet Protocol that are in active use. IPv4, the fourth version, consists of four groups of numbers ranging from 0 to 255, separated by periods. An example of an IPv4 address is 192.168.1.1. However, the increasing number of internet-connected devices has led to a shortage of IPv4 addresses.
To counter this problem, IPv6 was introduced. It uses a combination of numbers and letters, separated by colons, allowing for a significantly larger number of unique addresses. An example of an IPv6 address is 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Besides offering a larger pool of addresses, IPv6 also includes features for improved performance and security. However, the transition from IPv4 to IPv6 has been gradual, as it requires changes in the infrastructure of the internet. Today, both versions are in use, with devices often supporting both IPv4 and IPv6 addresses.
How IP Addresses are Assigned
IP addresses are assigned by Internet Service Providers (ISPs) to each device connected to the Internet. However, the process varies depending on the type of IP address in question.
- Static IP Addresses: These are manually assigned and remain constant. They’re typically used for servers or services where a consistent IP address is necessary.
- Dynamic IP Addresses: These are assigned automatically by a network’s Dynamic Host Configuration Protocol (DHCP) server each time a device connects to the network. The DHCP server keeps track of which IP addresses are in use and which are available, ensuring that each device on the network has a unique IP address.
For both types of addresses, the ISP uses a pool of available IPs for assignment. In the case of dynamic IPs, these can change periodically for various reasons, such as when the device is rebooted, or the lease on the IP address expires.
When it comes to IPv6 addresses, the same principles apply, but the vast number of available addresses often allows for static assignment even for residential customers. Stateful DHCPv6 or Stateless Address Autoconfiguration (SLAAC) are the primary methods used for automatically assigning IPv6 addresses.
Keep in mind, however, that all of these processes are largely invisible to the average user, taking place behind the scenes whenever you connect a device to the internet.
Subnets

What is a Subnet?
A subnet, or subnetwork, is a division of an IP network where devices share a common IP address prefix. Essentially, it’s a method of partitioning a single physical network into multiple smaller logical networks to organize and secure network traffic. This is useful for both network management and security; by dividing a large network into smaller subnets, administrators can prevent network congestion and enhance security by isolating segments of the network. A subnet is defined by its subnet mask, which specifies which part of the IP address denotes the network and which part denotes the device. Each subnet operates as its own network, allowing organizations to structure their networks to mirror their physical or operational needs.
The Purpose of Subnetting
Subnetting is essential for several reasons, primarily revolving around efficiency, organization, and security. By subdividing a network into smaller subnets, organizations can ensure efficient use of IP addresses. With careful planning, no IP address is wasted, which is particularly critical for IPv4 addresses that are in short supply.
Subnetting also allows for better organization. Devices within the same department or geographical location can be grouped into a single subnet, making it easier for network administrators to manage these devices. This is particularly useful for large organizations spanning multiple locations.
From a security perspective, subnetting can help isolate different parts of a network. If an intruder gains access to one subnet, the damage can be contained, and they may not be able to reach other parts of the network. In this way, subnetting adds an additional layer of security to your network infrastructure.
How Subnetting Works
Subnetting works by taking a network and partitioning it into smaller networks, or ‘subnets.’ This process begins by taking an IP address, which consists of network and host parts, and further dividing the host part into subnet and host address parts. The ‘subnet mask,’ a 32-bit number, plays a vital role in this process by determining how the IP address is divided.
The initial step in subnetting is determining the number of subnets required. This is followed by identifying the number of hosts per subnet. Once these factors are known, the subnet mask can be created. Essentially, the subnet mask’s role is to indicate where the network address ends and where the host address begins. In binary, a subnet mask is a series of ones followed by a series of zeros. The ones represent the network part of the address, while the zeros represent the host part.
When a device reads an IP address, it uses the subnet mask to distinguish between the network, subnet, and host addresses. The binary ‘AND’ operator is used for this process. This system enables devices to communicate with each other accurately and efficiently, ensuring that network traffic is correctly routed.
The practice of subnetting, while it may seem complex, plays a fundamental role in maintaining organized, efficient, and secure network infrastructures.
The Interplay of DNS, IP, and Subnets
Just like each place in the world has an address – Each machine on the internet has an address called the IP Address. For instance, your computer has an IP address, the server that hosts this website has an IP adress, and so on. And when we use “www.zarrata.com”, we are actually referring to IP address “69.147.225.58” which is assigned to zarrata.com. You can find your own IP at http://whatismyipaddress.com/
Then, of course, we would need a database that has all the IP’s corresponding to all the websites on the internet. It could then be used to translate the human-friendly address or domain names(zarrata.com) to the real(IP) address(64.197.225.58). This database is called the DNS (Domain Name System).
Now, an IP address is actually used in binary for communication by the computer. For instance, 216.27.61.137 translates to 11011000.00011011.00111101.10001001 – each number is represented by 8 positions in binary form – and are hence, called octets. The complete IP address is then a 32-bit number (made from 4 octets). Each of these 32 bits can be either 0 or 1 – thus allowing 2^(32) unique IP addresses which is about 4.3 billion possibilities.
[PS – The IP address considered here is the most prevalent version of the IP address – called IPv4. The other being IPv6]
Now, the first half of the IP address – the first 2 octets – 216.27 is the network part and the second half – the last 2 octects 61.137 form the machine or host part. ie-the first half is the neighborhood or street where you live and the second half is the exact house in the neighborhood. Hence, machines having the same first half of the IP belong to the same network. For instace, 129.144.50.56 & 129.144.23.122 belong to the same network.
Subnets & Subnetting
Networks having a large number of hosts are divided into subnetworks or subnets. A subnet number is assigned to each subnet. The second half or host part now has the host and the subnet number combined together – using the AND operation.
Consider a large network 192.168.10.0 that has the IP addresses ranging from 192.168.10.1 – 192.168.10.224
(225 is the maximum value of any octet – since, 256 is not an octect; 256 = 100000000. Here 224 is used since 192.168.10.255 is a BROADCAST ADDRESS and cannot be used).
Now, we wish to divide the network into two subnetworks:
The first network consisting of the machines 192.168.10.1 – 192.168.10.127
The second network consisting of the machines 192.168.10.128 – 192.168.10.225
It is done by using a subnet mask which is defined by :
1)The class of IP(see table below) – here, the mask to be used is 255.255.255.0
2)The address that divided the network – here, 192.168.10.128
Hence, the mask obtained from 1) & 2) is 255.255.255.128
Class | Address Range | Subnet Mask |
Class A | 1.xxx.xxx.xxx – 126.xxx.xxx.xxx | 255.0.0.0 |
Class B | 128.xxx.xxx.xxx – 191.xxx.xxx.xxx | 255.255.0.0 |
Class C | 192.xxx.xxx.xxx – 223.xxx.xxx.xxx | 255.225.225.0 |
Class D | 224.xxx.xxx.xxx – 239.xxx.xxx.xxx | Reserved for multicast groups |
Class E | 240.xxx.xxx.xxx – 254.xxx.xxx.xxx | Reserved for future use, research & development |
[Note – 127.x.x.x addresses are reserved for loopback or localhost]
Conclusion
The intricate journey that your data takes from your device to its destination is facilitated by the unique collaboration of DNS, IP, and subnets. DNS simplifies our interaction with the web, translating easy-to-remember domain names into IP addresses. IP addresses, in turn, serve as the unique identifiers that route the data packets to the correct device. Subnets add a layer of efficiency and security by splitting a larger network into smaller, more manageable ones. Understanding these concepts not only demystifies how the internet works but also fosters a greater appreciation for the complex mechanisms that enable our everyday online activities.
1 Comment
Pingback: Durofy » DNS, IP, Subnets & All That Jazz | DNS Internet