Domain Name System (DNS)

Chapter 12 · Tamil Nadu State Board

  • 8 min read
  • 5-question quiz

Every key point below shows the sentence from your textbook it comes from. How we check content

In short

This lesson explains how DNS connects easy-to-remember domain names with the IP addresses computers use to find hosts on a network. It introduces IP address formats, URL parts and types, and the main DNS components. It also describes how a resolver and name servers work together to find an IP address. Understanding these ideas helps explain how a browser can locate and display a requested website.

Written by AI from this lesson. How we check it

Key points

  • DNS maps domain names to IP addresses so people can access websites using names rather than long numbers.
    From your textbook
    “DNS provides the domain name to IP address mapping through Name servers.”
  • An IP address identifies a host system on a network, and the lesson describes IPv4 and IPv6.
    From your textbook
    “IP address is also used to find the host system in the whole network.”
  • IPv4 uses 32 bits and can be written in binary or dotted-decimal notation.
    From your textbook
    “There are two ways to represent the IP addresses z Binary notation z Dotted-decimal notation”
  • A URL identifies a document on the Internet and includes protocol, host name, folder name and file name.
    From your textbook
    “It is made up four parts : protocols, hostname, folder name and file name.”
  • An absolute URL gives a complete address, while a relative URL gives only a partial address.
    From your textbook
    “The relative URL is the partial address of a document on the Internet.”
  • DNS has four components: namespace, name server, zone and resolver.
    From your textbook
    “There are 4 important components in the Domain Name System.”
  • When a cached address is unavailable, DNS queries are passed through servers until the address is found and returned.
    From your textbook
    “Until the query is solved it is passed to next level domains.”
Test yourself: 5 questions

Why the Internet Uses DNS

Websites were once accessed using IP addresses. Remembering many long addresses was difficult, so domain names were created and linked to IP addresses. DNS helps find the IP address connected to a domain name.

Definition

Domain Name System (DNS)
A system that maps domain names to IP addresses through name servers.

The Internet works using IP addresses, but domain names are easier for people to use. DNS connects the name a person enters with the address needed to reach the website.

IP Addresses: IPv4 and IPv6

Definition

IP address
A logical address at the network layer that identifies a host system in a network.

IPv4 and IPv6

IPv4IPv6
A unique 32-bit address.A unique 128-bit address.
Its address space is 232 addresses.Its address space is 2128 addresses.
Can be written in binary or dotted-decimal notation.Its 128 bits are divided into eight 16-bits blocks, written as four-digit hexadecimal numbers separated by colons.

Ways to write an IPv4 address

  • Binary notation writes the address as 32-bit binary values. Example: 00111001 10001001 00111000 00000111
  • Dotted-decimal notation writes decimal values separated by dots. Example: 128.143.137.144

No two systems on a network can have the same IPv4 address. If a network has p connections, it should have p addresses. The address space depends on the number of bits used by the protocol.

Remember: IPv4 uses 32 bits; IPv6 uses 128 bits.

URL Parts and Types

Definition

Uniform Resource Locator (URL)
The address of a document on the Internet.

Four parts of a URL

  • Protocol
  • Hostname
  • Folder name
  • File name

URL types

Absolute URLRelative URL
The complete address of a document, with all information needed to find it.A partial address containing only a file name or a file name with a folder name.
All four parts are needed for the browser to link to the specific file.Can be used when the file is on the same server as the current document.

A URL may include additional information depending on the application. An absolute URL is like a complete postal address: missing information can prevent the browser from finding the right file.

DNS Namespace and Domain Names

DNS components

  • Namespace
  • Name server
  • Zone
  • Resolver

Ways to organise a namespace

Flat namespaceHierarchical namespace
Names are assigned to IP addresses without a specific structure. It is difficult to control centrally in large systems and avoid ambiguity and redundancy.Names are made up of several parts. Control can be decentralised, so this structure is widely used.

The Domain Name Space is a tree-like structure with a root at the top. It can have a maximum of 128 levels, from level 0 to level 127. The root represents the NULL string.

Definition

Label
A string of up to 63 characters that names a node in the DNS tree; labels at the same level must be different.

Definition

Domain name
A sequence of labels separated by dots, read from the lower level towards the root.

For example, challenger.atc.fhda.edu. is formed by reading the labels from the leaf node towards the root and separating them with dots. Domain names can contain letters and digits. Hyphens are allowed, but not as the first character; spaces and special symbols are not allowed. A domain name can be at most 253 characters long and is not case-sensitive.

Generic top-level domain names (gTLDs)

  • .com — Commercial Organisation
  • .edu — Educational Institutions
  • .gov — Government (US)
  • .mil — Military groups
  • .org — Non profit Organization
  • .net — Networking organization
  • .info — Information service providers

Remember: The top-level domain is the last part of a domain name.

Country Top-Level Domains

A country top-level domain (cTLD) uses a 2-character country abbreviation. For example, google.in is used for India and google.us for the US. Domain names can also use other languages in UNICODE format.

Examples of country domain names

  • .in — India
  • .us — United States
  • .fr — France
  • .uk — United Kingdom
  • .ca — Canada
  • .au — Australia
  • .lk — Srilanka
  • .bd — Bangladesh
  • .cn — China
  • .pk — Pakistan

Tamil is used in three country Top Level Domain names. These are இந்தியா for India, சிங்கப்பூர் for Singapore, and இலங்ககை for Srilanka.

Name Servers and DNS Zones

Definition

Name Server
A program running on a physical system that stores domain names and their corresponding IP addresses, and translates a domain name into an IP address.

Many servers work in a hierarchy because the Internet needs to store many domain names. When a website is requested, the Local Nameserver provided by the ISP asks other name servers until one finds the answer. The IP address is then returned so the computer can connect to the webpage.

Types of Name Servers

  • Root Name Server: The top-level server contains the entire DNS tree and is maintained by ICANN. There are 13 servers.
  • Primary Name Server: Contains zone resource records that domain name holders can update.
  • Secondary Name Server: Contains a copy of the primary server files. It cannot update them, but it shares queries and reduces the primary server's workload.

Definition

Zone
A group of contiguous domains and sub domains in the Domain Name Space.

Domain and zone

DomainZone
A subtree in the DNS tree-like structure.A group of contiguous domains and sub domains.
If it has no further sub domains, it is the same as its zone.A zone can contain more than one sub domain.

Each zone has a server with a database called a zone file. The DNS server uses this file to answer queries about hosts in its zone. Zone files are available as a Master file and a slave file.

Definition

Inverse domain
A domain lookup that performs the opposite of a normal DNS query by converting an IP address into a domain name.

Resolver and How DNS Works

Definition

Resolver
A program stored in the host that begins the process of translating a domain name into an IP address.

Steps in a DNS lookup

  • The browser checks the system's DNS cache for the IP address matching the URL.
  • If it is not there, the system asks the resolver through the Internet Service Provider (ISP).
  • The resolver checks its own cache. If the answer is not there, it passes the query to the next domain server, such as a TLD server.
  • The query moves through name servers for the domain until the IP address is found.
  • The record returns to the resolver, which sends it back to the browser. The user can then view the webpage.

ICANN is a non-profit organization that assigns names and numbers for Internet resources, including domain names and IP addresses. IANA is an affiliated authority of ICANN. It manages the DNS root server, IP addressing, and other Internet protocol resources.

Definition

WHOIS
A free, publicly available ICANN service that lists registered domain names and their owners, called registrants.

Web Servers and Key DNS Terms

Definition

Web Server
A program running on a dedicated machine that hosts websites and delivers their content using HTTP.

When a URL is entered, the browser first sends it to DNS and gets an IP address. The browser then sends a request to the web server using that IP address. The website content appears in the browser.

Useful DNS and Internet terms

  • IP address: A logical address used to uniquely identify a computer over a network.
  • IPv4: A 32 bit unique address represented in Binary notation or Dotted-decimal notation.
  • IPv6: A 128 bit unique address represented in Hexadecimal number notation.
  • URL: The address of a document on the Internet. It has protocols, domain name, folder name, and file name.
  • Absolute URL: Contains all four necessary parts of a URL.
  • Relative URL: Contains a file name with a folder name, or just the file name.
  • Label: A string with a maximum of 63 characters. Each node at that level must have a unique label.
  • Domain Name Space: A tree-like structure with the root at the top. It can have a maximum of 128 levels, from level 0 to level 127.
  • Domain name: A sequence of labels separated by dots, read from the leaf node to the root node. The root node represents a NULL string.

Remember: DNS translates domain names into IP addresses so that users can access websites using domain names.

Questions students ask

Short, direct answers to what students search for in this chapter.

Why is DNS needed on the Internet?

The Internet uses IP addresses, but long numeric addresses are difficult for people to remember. DNS maps an easy-to-use domain name to its IP address through name servers, helping a browser reach the website connected to that name.

What is the difference between IPv4 and IPv6?

IPv4 is a unique 32-bit address, and its address space is 232 addresses. IPv6 is a unique 128-bit address, and its address space is 2128 addresses. IPv6 divides its bits into eight 16-bits blocks written as hexadecimal numbers separated by colons.

What are the four parts of a URL?

A URL has four parts: protocol, hostname, folder name and file name. Together, these parts provide the address of a document on the Internet. Depending on the application, additional information may also be added.

What is the difference between an absolute URL and a relative URL?

An absolute URL is the complete address of a document and contains all the information needed to find the file. A relative URL is partial; it contains a file name alone or with a folder name. It can be used for a file on the same server as the current document.

What are the basic rules for domain names?

A domain name can use letters from a-z or A-Z and digits from 0-9. Hyphens are allowed, but not as the first character. Spaces and special symbols are not permitted. The whole name can be at most 253 characters long and is not case-sensitive.

What does a name server do in DNS?

A name server is a program that runs on a physical system and stores a DNS database of domain names and their IP addresses. It searches for the requested domain and returns its IP address, helping the computer connect to the webpage.

Show 3 more questions

What is the difference between a primary and secondary name server?

A primary name server contains zone resource records that domain name holders can update. A secondary name server keeps a copy of the primary server files. It cannot update those files, but it shares queries and reduces the primary server's workload.

How does DNS find the IP address for a website?

The browser checks its DNS cache first. If the address is missing, the request goes to a resolver through the ISP. The resolver checks its cache and then passes the query through domain name servers until the IP address is found and returned to the browser.

What is a DNS zone?

A zone is a group of contiguous domains and sub domains in the Domain Name Space. A server stores a zone file containing information used to answer queries about hosts in that zone. If a domain has no further sub domains, its zone and domain are the same.

Practice

Question 1 of 5Score 0

Why were domain names created?

Exam questions

Practice questions with model answers. These are not from an official paper.

Why is DNS needed, and what does it do?2 marks

DNS makes it possible to use domain names instead of remembering IP addresses. It maps domain names to IP addresses through name servers so that users can access the associated websites.

State the differences between IPv4 and IPv6.5 marks

IPv4 and IPv6 are two Internet Protocol addressing methods used to uniquely identify computers or devices on a network.

  1. Address length: IPv4 uses a 32-bit address, whereas IPv6 uses a 128-bit address.
  2. Number of addresses: IPv4 can form 2³² addresses, while IPv6 can form 2¹²⁸ addresses.
  3. IPv4 notation: IPv4 addresses can be represented in binary notation or dotted-decimal notation.
  4. IPv6 notation: IPv6 uses hexadecimal notation, with its address divided into eight 16-bit blocks separated by colons.
  5. IPv4 example: An IPv4 address example is written as four decimal values separated by dots.

Example: IPv4: 128.143.137.144; IPv6: 2001:0000:3231:DFE1:0063:0000:0000:FEFB.

Thus, IPv6 provides a much larger address space and uses a different notation from IPv4.

What are the four parts of a URL, and how do absolute and relative URLs differ?5 marks

A URL (Uniform Resource Locator) is the address of a document on the Internet. It is made up of four parts.

  1. Protocol: The protocol is one of the four parts of a URL.
  2. Host name: The host name identifies the host in the URL.
  3. File name: The file name identifies the document or file.
  4. Absolute URL: An absolute URL is the complete address and contains all the information required to find a file on the Internet.
  5. Relative URL: A relative URL is a partial address containing only a file name or a file name with a folder name. It can be used when the file is on the same server as the current document.

Example: http://cms.tn.gov.in/sites/default/files/press_release/pr070119a.jpg

Thus, an absolute URL gives the complete address, while a relative URL gives only a partial address.

Describe how a DNS query finds an IP address.5 marks

DNS translates a domain name entered in a browser into its corresponding IP address. This enables users to access websites using domain names instead of remembering IP addresses.

  1. Check the DNS cache: When the user enters a URL, the system first checks its DNS cache. If the IP address is found, the information is retrieved from the cache.
  2. Query the resolver: If the address is not in the system cache, the system queries the resolver about the IP address through the Internet Service Provider. The resolver also checks its own cache.
  3. Pass the query to domain servers: If the resolver does not have the information, it passes the query to the next domain server, such as the TLD server, which directs it to name servers associated with the domain.
  4. Continue until the query is solved: The query is passed through the domain-server levels until the required information is found.
  5. Return the IP address: The corresponding record containing the IP address is sent to the resolver, which returns it to the computer browser.
  6. Access the webpage: With the IP address, the user can view the webpage. The browser sends the URL to DNS and, after receiving an IP address, sends the request to the web server.

Example: The chapter’s workflow shows a query passing through the Root Server, Org Server and tnscert.org Server.

Draw and label: Basic DNS query workflow

  • Browser
  • Root Server
  • Org Server
  • tnscert.org Server
  • Web Server

Thus, DNS finds and returns the IP address corresponding to the domain name so the browser can access the webpage.

Watch out

  • Do not confuse an IP address, which identifies a host on a network, with a URL, which addresses a document on the Internet.
  • Do not mix up a domain and a zone: a zone can cover a group of domains and sub domains, though a single-domain zone can be the same as its domain.

Still stuck on this lesson?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →