Domain Name System (DNS) in Application Layer
Domain Name System (DNS) in Application Layer
The Domain Name System (DNS) is like the internet’s phone book. It helps
you find websites by translating easy-to-remember names (like
www.example.com) into the numerical IP addresses (like 192.0.2.1) that
computers use to locate each other on the internet. Without DNS, you would
have to remember long strings of numbers to visit your favorite websites.
Types of Domain
There are various kinds of domains:
nslookup www.geeksforgeeks.org
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 1/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
Types of DNS
Organization of Domain
It is very difficult to find out the IP address associated with a website
because there are millions of websites and with all those websites we
should be able to generate the IP address immediately, there should not be
a lot of delays for that to happen organization of the database is very
important.
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 2/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
DNS Record: Domain name, IP address what is the validity? what is the
time to live? and all the information related to that domain name. These
records are stored in a tree-like structure.
Namespace: Set of possible names, flat or hierarchical. The naming
system maintains a collection of bindings of names to values – given a
name, a resolution mechanism returns the corresponding value.
Name Server: It is an implementation of the resolution mechanism.
Name-to-Address Resolution
The host requests the DNS name server to resolve the domain name. And
the name server returns the IP address corresponding to that domain name
to the host so that the host can future connect to that IP address.
Name-to-Address Resolution
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 3/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 4/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 5/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
Actively performs
Does not participate in
Hierarchical Resolution recursive name
the recursive resolution
resolution
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 6/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 7/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
Working of DNS
This hierarchical system of DNS servers ensures that when you type a
domain name into your web browser, it can be translated into the correct IP
address, allowing you to access the desired webpage on the internet.
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 8/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
There are basically three types of DNS Queries that occur in DNS Lookup.
These are stated below.
Recursive Query: In this query, if the resolver is unable to find the record,
in that case, DNS client wants the DNS Server will respond to the client
in any way like with the requested source record or an error message.
Iterative Query: Iterative Query is the query in which DNS Client wants
the best answer possible from the DNS Server.
Non-Recursive Query: Non-Recursive Query is the query that occurs
when a DNS Resolver queries a DNS Server for some record that has
access to it because of the record that exists in its cache.
Conclusion
In conclusion, the Domain Name System (DNS) is an essential part of the
application layer in networking. It acts like the internet’s directory,
translating human-friendly domain names into numerical IP addresses that
computers use to communicate. Without DNS, navigating the internet would
be much more difficult, as we’d need to remember complex IP addresses for
every website. DNS makes the internet user-friendly and efficient, allowing
us to easily access websites and online services by using simple, memorable
names.
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 9/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 10/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
GeeksforGeeks 176
Similar Reads
Computer Network Tutorial
A computer network is a collection of computers or devices connected to share resources. Any device
which can share or receive the data is called a Node. Through which the information or data propagate is…
10 min read
Network Topology
OSI Model
Protocols
TCP/IP Model
IP Addressing
Routing
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 11/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
Network Switching
Application Layer:DNS
9 min read
Details on DNS
DNS (Domain Name System) allows you to interact with devices on the Internet without having to
remember long strings of numbers. Each computer on the Internet has its own unique address, known a…
5 min read
4 min read
E-Mail Format
Electronic Mail (e-mail) is one of the most widely used services of the Internet. This service allows an
Internet user to send a message in a formatted manner (mail) to other Internet users in any part of the…
3 min read
6 min read
9 min read
5 min read
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 12/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
Over the last few years, there has been a huge increase in the number of Internet users. YouTube alone
has 2 Billion users worldwide, while Netflix has over 160 million users. Streaming content to such a wid…
4 min read
CN Interview Quetions
CN MCQ
Company Languages
About Us Python
Legal Java
In Media C++
Contact Us PHP
Advertise with us GoLang
GFG Corporate Solution SQL
Placement Training Program R Language
GeeksforGeeks Community Android Tutorial
Tutorials Archive
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 13/14
01/12/2024, 14:07 Domain Name System (DNS) in Application Layer - GeeksforGeeks
DSA Roadmap by Sandeep Jain NumPy
All Cheat Sheets NLP
Deep Learning
https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/ 14/14