Professional Documents
Culture Documents
Domain Name System: M S University of Baroda
Domain Name System: M S University of Baroda
M S University Of Baroda
What Is Domain ?
A domain is a sub tree of the domain name
space.
Domain may itself be divided into domains
which are sometimes called sub domains.
It contains resource records.
Some resource records point to authoritative
server for sub-domains or zones.
i.e. google.com.au is a domain.
M S University Of Baroda
INTRODUCTION
M S University Of Baroda
DNS In Internet
DNS is a protocol that can be used in
different platforms.
M S University Of Baroda
Root
M S University Of Baroda
Generic Domain
M S University Of Baroda
Root Level
fhd
a
atc
atc.fhda.ed
uIndex To
Addresses
M S University Of Baroda
Generic Domain Labels
com Commercial Organizations
M S University Of Baroda
New Generic Domain Labels
Labels Description
arts Cultural Organizations
firm Business or Firms
info Information service provider
nom Personal nomenclatures
rec Recreation organization
web Web-related organization
store Business offering goods to
purchase
M S University Of Baroda
The Generic Top Level Domains
( gTLDs )
.COM, .NET, and .ORG
By far the largest top level domains on the Internet
today is .COM that has approx. 20,000,000 names
Essentially no restriction on what can be registered
M S University Of Baroda
Country Domain
The Country Domain section follows the same
format as Generic Domain but uses two-
character country abbreviations in place of the
three-character organizational abbreviations at
the first level.
Second level labels can be organizational,
national designations.
For example, United States uses state
abbreviations as a subdivision of us.
M S University Of Baroda
Root Level
ae fr us zw
ca
anza
anza.ca.us
Index To
Addresses
M S University Of Baroda
ccTLD Organization
How each country top-level domain is organized is up to the
country.
Others, like Great Britain’s uk and Japan’s jp, divide the domain
functionally but use their own abbreviations.
ac.uk, co.uk, ne.jp, ad.jp, etc.
M S University Of Baroda
Inverse Domain
The Inverse Domain is used to map an
address to name.
M S University Of Baroda
M S University Of Baroda
“.“
COM AU GOV
Commercial Australia Governmental
Organizations Organizations
NET IN MIL
Network India Military Organizations
Infrastructure
US
USA
Current TLDs ZW
Zimbabwe
M S University Of Baroda
What Is A Name Server?
Server responsible for answering DNS queries.
Exists at all levels of hierarchy.
Authoritative name servers hold part of the DNS
database.
One name server can serve more then one zone.
Many name servers “should” serve the same zone.
Some name servers are authoritative for certain
zones.
M S University Of Baroda
Naming a Domain Naming a Directory
Start
Here
Start
Here
yahoo.com.au. C:\windows\system32\drivers\
M S University Of Baroda
Accessing A Webpage
M S University Of Baroda
Step - 1
Your PC sends a resolution request to its
configured DNS Server, typically at your ISP.
Your PC
ISP “Recursive” DNS server
M S University Of Baroda
Step - 2
Your ISPs recursive name server starts by asking one
of the root servers predefined in its “hints” file.
Tell me the Address of
“www.google.com”
Your PC
ISP “Recursive” DNS server
M S University Of Baroda
Step - 6
Your PC can then make the actual HTTP
request to the web server.
Your PC
www.google.com web server
Here it is!
M S University Of Baroda
Summary
WEB (HTTP)
Request
google.com.au
Web Server
2
6
1
3
5
Your PC
ISP “Recursive” DNS server “com” DNS servers
4
The actual web
request DNS requests
DNS
M S University Of Baroda
DNS Messages
There are two types of messages are in DNS.
i. Query Message
ii. Response Message
M S University Of Baroda
M S University Of Baroda
Header :-
Both query and response messages have the
same header format with some fields set to
zero for the query messages.
Question Section:-
This is a section consisting of one or more
question records.
It is present on both query and response
messages.
M S University Of Baroda
Answer Section:-
This is a section consisting of one or more resource
records.
It is present only on response messages.
It includes the answer from the server to the client.
Authoritative Section:-
This is a section consisting of one or more
resource records.
It is present only on response messages.
This section gives information (domain name)
about one or more authoritative servers for the
query.
M S University Of Baroda
Additional Information Section:-
This is a section consisting of one or more
resource records.
It is present only on response messages.
It provides additional information that may
help to the client.
For example, a server may give the domain
name of an authoritative server to the client in
authoritative section, and include IP address of
the same authoritative server in the additional
information section.
M S University Of Baroda
Types Of Records
Two types of records are used in DNS.
i. Question Records
ii. Resource Records
M S University Of Baroda
Step - 1
Your PC sends the e-mail to its configured outbound
mail server. A DNS request similar to the previous
example is required to find the address of the mail
server.
Your PC
Outbound Mail (SMTP) Server
M S University Of Baroda
Step - 2
Your mail server follows the same intensive process
to find the authoritative servers for “yahoo.com”.
Tell me the name servers for
“yahoo.com”
Yahoo.com DNS
server
Yahoo.com Mail
server
M S University Of Baroda
SUMMARY
DNS is the integral part in most protocols used
on the internet .
It makes internet human-friendly for all of us.
It is the world’s largest distributed database
system.
It fits the international model perfectly.
In simple terms, it is a mapping between names
and IP addresses.
M S University Of Baroda