Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE) PDF Download

Domain Name Services (DNS)
We have been using address to identify hosts. While perfectly suited for processing by routers, addresses are not exactly user friendly. It is for this reason that a unique name is also typically assigned to each host in a network.

Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE)

A naming service can be developed to map user-friendly names into router-friendly addresses. Name services are sometimes called middleware because they fill a gap between applications and the underlying network.

Host names differ from host addresses in two important ways. First, they are usually of variable length and mnemonic, thereby making them easier for humans to remember. (In contrast, fixed-length numeric addresses are easier for routers to process).Second, names typically contain no information that helps the network locate (route packets toward) the host. Addresses, in contrast, sometimes have routing information embedded in them; flat addresses (those not divisible into component parts) are the exception.

A namespace defines the set of possible names. A namespace can be either flat (names are not divisible into components), or it can be hierarchical.The naming system maintains a collection of bindings of names to values. The value can be anything we want the naming system to return when presented with a name; in many cases it is an address.

A resolution mechanism is a procedure that, when invoked with a name, returns the corresponding value. A name server is a specific implementation of a resolution mechanism that is available on a network and that can be queried by sending it a message.

DNS employs a hierarchical namespace rather than a flat namespace, and the“table” of bindings that implements this namespace is partitioned into disjoint pieces and distributed throughout the Internet. These sub tables are made available in name servers that can be queried over the network.

What happens in the Internet is that a user presents a host name to an application program, and this program encages the naming system to translate this name into a host address. The application then opens a connection to this host by presenting some transport protocol with the host‟s IP address.

Domain Hierarchy:
DNS names are processed from right to left and use periods as the separator. An example domain name for a host is cicada.cs.princeton.edu.There are domains for each country, plus the “big six” domains: .edu, .com,.gov, .mil, .org, and .net.

Name Servers:
The first step is to partition the hierarchy into sub trees called zones. Each zone can be thought of as corresponding to some administrative authority that is responsible for that portion of the hierarchy.Within this zone, some departments is a zone want the responsibility of managing the hierarchy (and so they remain in the university-level zone), while others, like the Department of Computer science, manage their own department-level zone.The relevance of a zone is that it corresponds to the fundamental unit of implementation in DNS-the name server. Specifically, the information contained in each zone is implemented in two or more name servers.Each name server, in turn, is a program that can be accessed over the Internet. Clients send queries to name servers, and name servers respond with the requested information. Sometimes the response contains the final answer that the client wants, and sometimes the response contains a pointer to another that the client should query next.Each name server implements the zone information as a collection of resource records. In essence, a resource record is a name-to-value binding, or more specifically, a 5-tuple that contains the following fields:

 

< Name, Value, Type, Class, TTL >

 

The Name and Value fields are exactly what you would expect, while the Type field specifies how the Value should be interpreted. For example, Type=A indicates that the Value is in IP address. Thus, A records implement the name-to-address mapping we have been assuming. Other record types include

  • NS: The Value field gives the domain name for a host is running a name server that knows how to resolve names within the specified domain.
  • CNAME: the Value field gives the canonical name for a particular host; it is used to define aliases.
  • MX: The Value field gives the domain name for a host that is running a mail server that accepts the messages for the specified domain.


The Class field was included to allow entities other than the NIC to define useful record types. To date, the only widely used Class is the one used by the Internet; it is denoted IN. Finally, the TTL field shows how long this resource record is valid. It is used by servers that cache resource records from other servers; when the TTL expires, the server must evict the record from its cache.

 

Name Resolution

Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE)

 

The document Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Networks.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
21 videos|113 docs|66 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Domain Name Service (DNS) - Computer Networks - Computer Science Engineering (CSE)

1. What is DNS and how does it work?
Ans. DNS, or Domain Name Service, is a system that translates domain names (such as example.com) into IP addresses (such as 192.168.0.1) that computers can understand. When you enter a domain name in your web browser, the DNS server looks up the IP address associated with that domain and directs your request to the appropriate server.
2. Why is DNS important for internet connectivity?
Ans. DNS is crucial for internet connectivity because it allows users to access websites and other online resources using easy-to-remember domain names instead of complicated IP addresses. Without DNS, we would have to remember and enter IP addresses for every website we want to visit, which is impractical and inconvenient.
3. Can I use any DNS server for my internet connection?
Ans. Yes, you can change the DNS server used by your internet connection. While most users rely on their internet service provider's default DNS server, you have the option to use a different DNS server for potentially improved speed, security, or content filtering. Popular alternative DNS servers include Google DNS, OpenDNS, and Cloudflare DNS.
4. How does DNS caching affect internet browsing?
Ans. DNS caching is a mechanism used by web browsers and operating systems to store recently accessed domain names and their corresponding IP addresses. This caching helps improve browsing speed and efficiency by reducing the time it takes to look up IP addresses for frequently visited websites. However, it can also cause delays in accessing newly created or updated websites until the cached information expires.
5. Are there any security concerns related to DNS?
Ans. Yes, there are security concerns related to DNS. DNS spoofing, also known as DNS cache poisoning, is a technique where attackers manipulate DNS records to redirect users to malicious websites or intercept their traffic. To mitigate these risks, it is important to ensure that you are using a trusted DNS server, keep your DNS software up to date, and consider implementing DNSSEC (DNS Security Extensions) for added protection against tampering.
21 videos|113 docs|66 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE)

,

video lectures

,

study material

,

MCQs

,

mock tests for examination

,

Sample Paper

,

Viva Questions

,

Previous Year Questions with Solutions

,

shortcuts and tricks

,

Summary

,

Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE)

,

Free

,

pdf

,

Semester Notes

,

Exam

,

Important questions

,

practice quizzes

,

Objective type Questions

,

past year papers

,

Extra Questions

,

Domain Name Service (DNS) | Computer Networks - Computer Science Engineering (CSE)

,

ppt

;