Application Layer
Application Layer
DNS can use the services of UDP or TCP, using the well-known port 53.
Domain name space
The domain name space consists of a tree of domain names. Each node or
leaf in the tree has one or more resource records, which hold information
associated with the domain name.
The tree is sub-divided into zones. A zone consists of a collection of
connected nodes authoritatively served by an authoritative DNS name
server. (Note that a single name server can host several zones.)
Domain names and labels
Each node in the tree has a label, which is a string with maximum of 63
characters. The root label is a null string(empty string).
Each node in the tree has a domain name. A full domain name is a
sequence of labels separated by (.) dots.
The domain names are always read from the node up to the root. The
last label is the label of the root.
FQDN and PQDN
FQDN: Fully qualified domain name is a domain name that
contains the full name of a host. It contains all labels, from the most
specific to the most general, that uniquely define the name of the
host.
PQDN: Partially qualified domain name starts from a node, but
does not reach the root. It is used when the name to be resolved
belongs to the same site as the client.
Domains
A domain is a sub tree of the domain name space. The name of the
domain is the domain name of the node at the top of the sub tree.
A domain may itself be divided into domains, or sub domains
DNS Server & Name server
The name space information is distributed among DNS servers. Each
server has the jurisdiction over its zone.
The root server „s zone is the entire tree.
Server responsible for answering DNS queries
In DNS we have hierarchy of servers called Name servers in the same way
that we have a hierarchy of names.
One name server can serve more then one zone
A Primary server is a server that store a file about the zone for which it
is the authority. It is responsible for creating maintaining and updating the
zone file. It stores the zone file in a local disk.
Label Description
Commercial
com
organizations
edu Educational institutions
gov Government institutions
International
int
organizations
mil Military groups
net Network support centers
org Nonprofit organizations
Country domains
Each country domain specifies a country.
Inverse domain
The Inverse domain finds a
domain name for a given IP
address. This is called address
to name resolution
DNS Resolver
Name servers are the computers that runs the DNS server program.
They are organized in hierarchy.
DNS is designed as a client-server application. A host that needs to
map an address to a name or a name to an address calls a DNS client
named as resolver. The resolver accesses the closest DNS server with
a mapping request. If the server has the information, it satisfies the
resolver; otherwise, it either refers the resolver to other servers or asks
other servers to provide the information.
Recursive resolution
In Recursive resolution the client sends its request to a
server that eventually returns a response.
Iterative resolution
In Iterative resolution, the client may send its request to multiple
severs before getting an answer.
Simple Mail Transfer Protocol (SMTP)