Professional Documents
Culture Documents
DHCP and DNS Server
DHCP and DNS Server
PRESENTED BY:
ARSLAN ALI
What is a server?
A DHCP server has a database that statically binds physical address to IP address.
Dynamic address allocation
DHCP has second database with pool of IP addresses. This second database makes
DHCP dynamic.
When a DHCP client request a temporary IP address, the DHCP server goes to pool of
available IP address and assign a IP address for a negotiable period of time.
Why DHCP issue IP address for specific
time?
Manual and automatic configuration
DHCP works at the application layer to dynamically assign the IP address to the client
and this happens through the exchange of a series of messages called DHCP
transactions or DHCP conversation.
DHCP Discovery:
The DHCP client broadcast messages to discover the DHCP servers. The client
computer sends a packet with the default broadcast destination of 255.255.255.255 or
the specific subnet broadcast address if any configured. 255.255.255.255 is a special
broadcast address, which means “this network”: it lets you send a broadcast packet
to the network you’re connected to.
DHCP Offer:
When the DHCP server receives the DHCP Discover message then it suggests or
offers an IP address(form IP address pool) to the client by sending a DHCP offer
message to the client. This DHCP offer message contains the proposed IP address for
DHCP client, IP address of the server, MAC address of the client, subnet mask, default
gateway, DNS address, and lease information.
DHCP Request
The IP address arrives to the device. The device will accept it and will send a request
to use it.
DHCP Pack
The server gets the accepting message from the device. It will provide the IP address
to the device, together with the subnet mask and the DNS server. It will write a record
with the information of the newly connected device that usually includes the MAC
address of the connected device, the IP address that was assigned, and the expiration
date of that IP address.
What is DNS server?
DNS server is a device that locates the internet domain names and translates them
into internet protocol (IP) addresses.
The Domain Name System (DNS) is the phonebook of the Internet. When users
type domain names such as ‘google.com’ or ‘youtube.com’ into web browsers, DNS
is responsible for finding the correct IP address for those sites.
How do DNS servers resolve a DNS
query?
In a typical DNS query without any caching, there are four servers that work together
to deliver an IP address to the client:
recursive resolvers:
root nameservers:
TLD nameservers:
authoritative nameservers:
Recursive resolvers:
A recursive resolver (also known
as a DNS recursor) is the first stop
in a DNS query. The recursive
resolver acts as a middleman
between a client and a DNS
nameserver. During this process,
the recursive resolver will cache
information received from
authoritative name servers.
Root nameservers:
The root nameserver provide the
IP addresses of the TLD server.
TLD nameservers:
The authoritative
nameserver contains information
specific to the domain name it serves
(e.g. google.com) and it can provide a
recursive resolver with the IP address
of that server found in the DNS A
record, or if the domain has a
CNAME record (alias) it will provide
the recursive resolver with an alias.
domain
Questions: