05 DNS DHCP
05 DNS DHCP
Chapter 05
Essential Services: Operation and Protocols
DHCP & DNS
Dynamic Host Configuration
Protocol
(DHCP)
History
• The DHCP server will not reallocate the address during the lease
period and will attempt to return the same address every time the
client requests an address
• The client can extend its lease or send a message to the server
before the lease expires it that it no longer needs the address so it
can be released and assigned to another client on the network
Advantages
• DHCP minimizes the administrative burden
• By using DHCP there is no chance to conflict IP address
• By using DHCP relay agent you provide IP address to another
network
Disadvantages
• When DHCP server is unavailable, client is unable to access
enterprises network
• Your machine name does not change when you get a new IP
address
• DHCP servers are easy to administer and can be set-up in just a few minutes
IP Address1
IP Address2
DHCPOFFER
Source IP Address = 192.168.0.108
Dest. IP Address = 192.168.0.77
Offered IP Address = 192.168.0.77
Client Hardware Address = 08004...
Subnet Mask = 255.255.255.0
Length of Lease = 8 days
DHCP Client Server Identifier = 192.168.0.108 DHCP Server
DHCP Option: Router = 192.168.0.1
Client1
Configuration A
Client2
DHCP Configuration B Client3
Server
Configuration C
• You would like to get to the address or other objects using a name
https://www.youtube.com/watch?v=mpQZVYPuDGU
The Complete Guide to Linux System Administration
27
Module Code & Module Title Slide Title SLIDE 27
Naming History
• 1970’s ARPANET
– Host.txt maintained by the SRI-NIC
– pulled from a single machine
– Problems
• traffic and load
• Name collisions
• Consistency
• DNS created in 1983 by Paul Mockapetris
(RFCs 1034 and 1035), modified, updated,
and enhanced by a myriad of subsequent
RFCs
C:
Start
Here
C:\windows\system32\drivers\
yahoo.com.au.
A “.” is used as A “\” is used as
separator separator
Other
com net org au info biz
ccTLDs
TLDs & ccTLDs
“zone cuts” or
delegation
points ausregistry microsoft google yahoo theage 3lds
4lds
internal prosrs
Domain com.au
The ausregistry.com.au
internal prosrs sub-domain of com.au
https://www.youtube.com/watch?v=pkvaTUl5F-Y
Sends the query to another DNS server if it doesn't Resolves the query internally or by querying other DNS servers
Query Handling have the requested information. until it finds the requested information.
Responsible for providing a quick response and
Responsible for fully resolving the query and providing the client
Responsibility passing responsibility for further resolution to the
with the requested information.
client or another DNS server.
Typically generates less network traffic as it doesn't Can generate more network traffic as it may need to query multiple
Network Traffic perform full resolution internally. DNS servers to fully resolve the query.
Generally simpler as it doesn't need to handle full Can be more complex as it needs to handle full resolution and
Complexity resolution internally. maintain a cache of previously resolved queries.
Suitable for scenarios where quick responses are Essential for resolving less common or newly registered domain
Use Cases prioritized, such as resolving popular domain names. names, ensuring complete resolution.
• Domain names make large networks such as the internet human friendly
• IPv4 address difficult to remember and offer no hint as to whom they belong to.
• Problem gets worse when you consider IPv6
• Allow intelligent systems (eg Mail (SMTP)) to preform tasks automatically
Your PC
ISP “Recursive” DNS server
Your PC
ISP “Recursive” DNS server
Your PC
www.google.com web server
Here it is!
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
Your PC
Outbound Mail (SMTP) Server