What Is DNS
What Is DNS
Root Server
The recursive resolver queries a root server, which provides the address of the top-level domain (TLD) server.
TLD Server
The recursive resolver then queries the TLD server for the domain name's authoritative name server address.
Authoritative Server
Finally, the recursive resolver contacts the authoritative name server to retrieve the IP address associated with the domain name.
Types of DNS Servers
Root Servers TLD Servers
These servers hold the top- These servers store
level domain information, information for specific top-
such as .com, .org, and .net. level domains, such as
google.com or facebook.com.
2)DNS translates human-readable domain names (like www.example.com) into IP addresses that computers use to
identify each other on the network.
3)Caching speeds up this translation process by storing previously retrieved DNS records, so they don’t have to be
looked up repeatedly.
HOW DNS CACHING WORKS?
• Initial Query: When a user requests a domain (like www.example.com), the local DNS resolver queries multiple
DNS servers (root, TLD, and authoritative servers) to resolve the domain name to an IP address.
• Cache Storage: Once resolved, the DNS resolver caches the result for a period of time specified by the TTL in the DNS re
• Subsequent Requests: When the same domain is requested again within the TTL period, the cached
information is used directly without querying the DNS servers again.
BENEFITS OF DNS CACHING
• Faster Load Times: Cached DNS responses reduce the time needed to resolve domain names, leading to faster
webpage loading times for users.
• Reduced Network Traffic: Caching minimizes the need for repetitive DNS queries over the internet, reducing
network congestion and load on DNS servers.
• Lower Latency: Since cached queries can be resolved locally, they avoid the round-trip time to external DNS
servers, improving the responsiveness of network requests.
• Increased Reliability: If the external DNS server goes down, local DNS caches can still resolve domains as long
as the cached records are valid, ensuring some level of continuity.
• Reduced DNS Server Load: Fewer queries to DNS servers reduce the load on public DNS infrastructure, making
the entire system more efficient and scalable.
DNS Record Types
A Maps a hostname to an IPv4 address.
DNS translates human-readable DNS records like MX records are DNS plays a role in security by
domain names into machine- crucial for email delivery, ensuring preventing malicious websites and
readable IP addresses, making it emails reach their intended directing users to the correct servers
easy for users to access websites. recipients.
THANK YOU