Need of DNS
Tree structure of Domain Name
Distributed hierarchy of DNS
DNS Header
Features of DNS
OPM
OPM
DNS Terms
Domain name: any name represented in the DNS format
mail.yahoo.com
www.manit.ac.in
opm@manit.ac.in (to target mail server @ symbol is used)
DNS zone: a set of names that are under the same authority
cs.manit.ac.in, ee.manit.ac.in and www.manit.ac.in
OPM
OPM
OPM
Use of Caching.
OPM
DNS Servers
authoritative name server
Give authoritative answers for one or more zones based on domains
and country.
The master server normally loads the data from a zone file
A slave server normally replicates the data from the master via a
zone transfer
slave
master
OPM
slave
consists of one or more parts (label ) concatenated, and delimited by dots, such
as www.gmail.com
The right-most label conveys the top-level domain; for example, the domain
name www.gmail.com belongs to the top-level domain com.
The hierarchy of domains descends from right to left; each label to the left
specifies a subdivision, or subdomain of the domain to the right. For example:
the label gmail specifies a subdomain of the com domain, and www is a sub
domain of gmail.com. This tree of subdomain may have up to 127 levels.
Each label may contain up to 63 characters. The full domain name may not
exceed a total length of 253 characters in its external dotted-label specification.
The characters allowed in a label are a subset of the ASCII character set, and
includes the characters a through z, A through Z, digits 0 through 9, and the
hyphen (-). This rule is known as the LDH rule(Letters, Digits, Hyphen). There
are demands for domain name in regional languages.
Domain names are interpreted in case-independent manner. Labels may not start
or end with a hyphen.
OPM
9
DNS tree
root
com
ibm
org
gov
net
cnn
in
ac
manit
OPM
co
gov
iitk
10
Reliability scheme:
Time out.
Retransmissions - resends timed out query to a different server.
OPM
11
DNS Elements
Resolver:
only asks questions;
recursive: takes simple query and makes all necessary steps to
get the full answer.
Server (some perform both roles of resolver & server at the same
time):
authoritative: the servers that contain the zone file for a zone,
one Primary, one or more Secondary;
caching: a recursive resolver that stores prior results and reuses
them (local network servers and web browsers like google
Crome etc.).
OPM
12
Registrar
the agent which submits change requests to the registry on behalf of the
registrant
Registrant
The entity (person or organization) which makes use of the domain name
OPM
13
In case of main Name server and backup name server, there should
not be a common point of failure like common power backup.
Examples of Donain and Subdomains
www.manit.ac.in
www.ece.manit.ac.in,
www.cse.manit.ac.in, etc.
OPM
14
Registry updates
zone
Registry
Zone DB
Registrar submits
add/modify/delete
to registry
Registrar
Registrar
Slaves server
updated
Registrar
OPM
16
From
disk
Authoritative Data
(primary master and
slave zones)
Zone
data
file
Zone transfer
Master
server
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
OPM
17
Authoritative Data
Name Server Process
Authoritative Data
(primary master and
slave zones)
Response
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
Query
OPM
Resolver
18
Authoritative Data
(primary master and
slave zones)
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
Response
Response
Query
Arbitrary
name
server
Query
OPM
Resolver
19
Cached Data
Name Server Process
Authoritative Data
(primary master and
slave zones)
Response
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
Query
OPM
Resolver
20
Root Server
Ask org NS
www.ietf.org
Org Server
Ask ietf.org NS
Stub resolver
www.ietf.org A
65.256.255.51
Recursive
Resolver
ietf.org Server
www.ietf.org A
65.256.255.51
OPM
21
OPM
22
Slave
Upload of zone
data is local policy
Master
Registry DB
Slave server
slideset
OPM1 -23
Host device
DNS message
OPM
24
OPM
25
QR:-A one bit field that specifies whether this message is a query (0), or a
response (1).
Opcode:- A four bit field that specifies type of query in this message.
Standard (0), Inverse (1), completion (2 & 3 now obsolete).
26
RD (Recursion Desired) :- this bit directs the name server to pursue the query
recursively.
RA (Recursion Available) - this be is set or cleared in a response, and denotes
whether recursive query support is available in the name server. Recursive query
support is optional.
Z Reserved for future use.
AD (Authentic Data)- to show data authenticity and integrity of record and errors.
CD (Checking Disabled)- to disable signature validation in a security-aware name
server's processing of a particular query.
RCODE (Response code) - this 4 bit field is set as part of responses. The values have
the following interpretation:
0 No error condition
1 Format error - The name server was unable to interpret the query.
2 Server failure - The name server was unable to process this query due to a problem with3
the name server.
3 Name Error - Meaningful only for responses from an authoritative name server, this code
signifies that the domain name referenced in the query does not exist.
4 Not Implemented - The name server does not support the requested kind of query.
5 Refused - The name server refuses to perform the specified operation for policy reasons.
OPM
27
OPM
28
Question section
29
Answer Section
NAME (Resource Domain Name) The domain name that was queried, in the same
format as the QNAME in the questions.
TYPE Two octets containing one of the type codes. This field specifies the meaning
of the data in the RDATA field. type 0x0001 (A record), type 0x0002 (name servers)
, type 0x0005 (CNAME/ Alias) and 0x000f (mail servers).
CLASS Two octets which specify the class of the data in the RDATA field.
0x0001 for Internet addresses etc.
OPM
30
if the TYPE is 0x0001 for A records, then this is the IP address (4 octets).
If the type is 0x0005 for CNAMEs, then this is the name of the alias.
If the type is 0x0002 for name servers, then this is the name of the server.
Finally if the type is 0x000f for mail servers,
OPM
31
Additional Section
Resource Records (RRs) holding additional information
OPM
32
OPM
33
OPM
34
35
OPM
36
37