Domain Name System
Domain Name System
4)Diagram
1
7)Steps used in getting IP (6 steps used )(
1.passing(hostname) to FTP client
2.passing(host name) to DNS client
3.sending(query) to DNS server
4.getting response(IP address)
5.passing response(IP address) to FTP client
6.FTP client uses IP address to access the
file
The overall objective is a client machine wants to access a file which is
stored in a FTP server.
There will be a 1)client computer or user 2)FTP client 3)DNS Client
4)DNS 5)FTP Server
1. The user passes the host name to the file transfer client.
2. The file transfer client passes the host name to the DNS client.
3. Each computer, after being booted, knows the address of one DNS
server. The DNS client sends a message to a DNS server with a query
that gives the file transfer server name using the known IP address of the
DNS server.
4. The DNS server responds with the IP address of the desired file
transfer server.
5. The DNS client passes the IP address to the file transfer client.
6. The file transfer client now uses the received IP address to access the
file transfer server.
1. Name Space
1)use of name space? (to map each address to a unique name)
2)levels of the tree?( 128 levels , root(0 level) upto (127 level)
3)Diagram
Label
1)what each node has ? ( a label, string upto 63 characters)
Domain Name
1)what each node in a tree has? (a domain name)
4
Domain
1)what is domain? (subtree of domain name space)
2)Name of the domain?( name of the node at the top of the sub tree)
3)Diagram
5
2)what is a zone?(contiguous part of the entire tree)
3)Diagram
Root server
1)What is a Root Server (whose zone consists of the entire tree)
2)What a root server does?( won’t store, delegates,keeps references)
1. It won’t store any information about domains
2. delegates its authority to other servers
3.keeps references of those servers
6
which stores a file about the zone for which
it is an authority)
2)where the zone file is stored?( at the hard disk)
7
Each node in the tree defines a domain, which is an index to the domain
name space database
4)What the generic domain allows?(14 possible labels)
5)table (a,b,c,c,e,g,i,i,m,m,n,n,o,p)
Country Domains
1)what they use? (two character country abbreviations , state
abbreviations))(us)(ca.us)
2)Diagram
Inverse Domains
1) Why they are used?(to find the name of the host when given the IP)
2)are they used now and if not why?(no , extremely difficult to keep
track of the inverse domains , they are now
deprecated)
3. Resolution
1) What is name-address resolution?(mapping a name to an address)
8
2)How DNS is designed? (like a client-server application)
9
Step 2: resolver does not know this address so sends query to the local
DNS server
Step 3: local DNS server does not know this address so send query to
root DNS server
We assume that this server does not know the IP address of the
destination host either. It sends the query to a root DNS server, whose IP
address is supposed to be known to this local DNS server (event 2). Root
servers do not normally keep the mapping between names and IP
addresses, but a root server should at least know about one server at each
top level domain (in this case, a server responsible for com domain). The
query is sent to this top-level-domain server (event 3). We assume that
this server does not know the name-address mapping of this specific
destination, but it knows the IP address of the local DNS server in the
McGraw-Hill company (for example, dns.mcgraw-hill.com). The query
is sent to this server (event 4), which knows the IP address of the
destination host. The IP address is now sent back to the top-level DNS
server (event 5), then back to the root server (event 6), then back to the
ISP DNS server, which may cache it for the future queries (event 7), and
finally back to the source host (event 8).
Iterative Resolution
In iterative resolution, each server that does not know the mapping
sends the IP address of the next server back to the one that requested it.
Figure shows the flow of information in an iterative resolution in the
same scenario as the one depicted in Figure 26.36. Normally the iterative
10
resolution takes place between two local servers; the original resolver
gets the final answer from the local server. Note that the messages
shown by
11
4. Caching
1) what a server does when it receives a query?( it searches its
database for a server IP
address, it will take some
search time)
3) How caching can be done? ( when a server asks for mapping from
another server and receives
response , it stores this information in its
cache memory before sending this
to client)
12
4) Advantages of caching?( 1.reduces search time
2.Increases efficiency
3.speeds up resolution)
5. Resource Records
1) implementing zone information? ( set of resource records)
1.in general zone information is associated with a server
2.this is zone information is implemented as a set of resource
records)
13
3.Domain Value
4.TTL
6. DNS Messages
1) Use of DNS messages? (to retrieve information about hosts)
14
Identification field? (used by client to match response with query)
7. Registrars
4)finding registrars? (there are many registrars and their names and
addresses can be found
athttp://www.intenic.net)
6)example
15
For example, a new commercial organization named wonderful with a
server named ws and IP address 200.200.200.5 needs to give the
following information to one of the registrars:
Domain name: ws.wonderful.com IP address: 200.200.200.5
16
3. The attacker may flood the DNS server to overwhelm it or eventually
crash it. This type of attack can be prevented using the provision against
denial-of-service attack.
17