Lecture 1.2.1 and 1.2.2
Lecture 1.2.1 and 1.2.2
Generic Domain
Country Domain
Inverse Domain
4
DNS IN THE INTERNET
5
Generic domains
6
Generic domain labels
7
Country domains
8
Curtesy: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
Inverse domain
•Used to map address to a name.
•Query of this type is inverse /pointer (PTR) query.
Representation of IP 132.34.45.121 in Inverse Domain
9
RESOLUTION
10
11
Recursive resolution(DNS client –Local DNS Server
12
Iterative resolution(Local DNS Server-Other DNS Servers)
When we type www.tutorialspoint.com into the browser, it asks the local DNS Server for its IP address.
Here the local DNS is at ISP end.
When the local DNS does not find the IP address of requested domain name, it forwards the request to
the root DNS server and again enquires about IP address of it.
The root DNS server replies with delegation that I do not know the IP address of www.tutorialspoint.com
but know the IP address of com DNS Server.
The local DNS server then asks the com DNS Server the same question.
The com DNS Server replies the same that it does not know the IP address of www.tutorialspoint.com
but knows the address of tutorialspoint.com.
Then the local DNS asks the tutorialspoint.com DNS server the same question.
Then tutorialspoint.com DNS server replies with IP address of www.tutorialspoint.com.
Now, the local DNS sends the IP address of www.tutorialspoint.com to the computer that sends the
request.
Curtesy: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains 13
Iterative resolution
14
Caching only Servers in DNS
Caching is a method where an answer to a query is stored in memory for a limited time for easy
access to future requests.
Caching increases efficiency of Name resolution
All DNS Servers cache the results of their queries.
Some DNS Servers are put into place to provide only this caching function. The Caching-only DNS
server does not contain zone information or a zone database file.
The Caching-only server only contains information based on the results of queries that it has already
performed.
Caching-only DNS Servers can be set up quickly
All DNS servers have a cache.dns file that contains the IP addresses of all Internet root servers
It adds to the cache as it issues iterative queries when responding to client requests to resolve Fully
Qualified Domain Names to IP addresses. After the FQDNs are resolved to IP addresses, this information
is stored in the DNS Server cache.
They do not participate in zone transfer, and therefore there is no zone transfer traffic
Caching-only servers do not require expert administration.
To gain the most benefit from a Caching-only DNS Server, you must not reboot the computer.
Be sure to include fault-tolerance mechanisms such as an UPS and redundant power supplies on such
a machine.
15
DNS ZONES
DNS DELEGATION
• For a DNS server to answer queries about any name, it must have a direct or indirect path to every
zone in the namespace.
• These paths are created by means of delegation.
• A delegation is a record in a parent zone that lists a name server that is authoritative for the
zone in the next level of the hierarchy.
• Delegations make it possible for servers in one zone to refer clients to servers in other zones. The
following illustration shows one example of delegation.
• This system of zones and delegations creates a hierarchical tree that represents the DNS
namespace. Each zone represents a layer in the hierarchy, and each delegation represents a
branch of the tree.
• By using the hierarchy of zones and delegations, a DNS root server can find any name in the
DNS namespace. The root zone includes delegations that lead directly or indirectly to all other
zones in the hierarchy. Any server that can query the DNS root server can use the information
in the delegations to find any name in the namespace.
23
DNS MESSAGES
DNS has two types of messages: query and response. Both types have the
same format. The query message consists of a header and question records;
the response message consists of a header, question records, answer
records, authoritative records, and additional records.
24
Query and response messages
25
REGISTRARS
How are new domains added to DNS? This is done through a registrar, a
commercial entity accredited by ICANN. A registrar first verifies that the
requested domain name is unique and then enters it into the DNS database.
A fee is charged.
26
Note
DNS can use the services of UDP using the well-known port 53.
27
REFERENCES
2. https://www.geeksforgeeks.org/domain-name-system-dns-in-application-layer/
28
THANK YOU
For queries
Email: dayal.e13263@cumail.in
29