Chapter 3a - DHCP DNS HTTP
Chapter 3a - DHCP DNS HTTP
Translate
Get IP address Browser send HTTP requests Browser renders
URL to IP
from DHCP Server to Web Server HTML files
using DNS
192.168.1.1
Translate
Get IP address Browser send HTTP requests Browser renders
URL to IP
from DHCP Server to Web Server HTML files
using DNS
understand these 3
things
DHCP
DNS
HTTP
Dynamic Host Configuration
Protocol (DHCP)
• Offer
• Request
• Acknowledge
(1) Discover:
process to request IP
When a device connects to a network, it sends a broadcast message called a
DHCP discover packet to request its configuration parameters. This packet is sent
to the broadcast address of the local subnet and is received by all devices on the
subnet, including the DHCP server.
(2) Offer:
If the DHCP server receives the discover packet, it responds with a DHCP offer
packet that includes an available IP address and other configuration parameters.
The offer packet is unicast (sent to a specific device) to the requesting device.
broadcast to add request the IP address, DHCP server reassigned and confirm the
address
(3) Request:
The requesting device responds with a DHCP request packet, acknowledging the
offer and requesting that the IP address and other parameters be assigned to it.
(4) Acknowledge:
If the DHCP server receives the request, it sends a DHCP acknowledge packet to
confirm the assignment of the IP address and other parameters to the requesting
device. The device is now configured and ready to communicate on the network.
DHCP DORA
Steps by steps DHCP Client DHCP Server
DISCOVER
0.0.0.0 1.1.1.1
sourceIP: 0.0.0.0
destIP: 255.255.255.255
OFFER
0.0.0.0 1.1.1.1
sourceIP: 1.1.1.1
destIP: 255.255.255.255
Offered IP: 1.1.1.2 server offer 1.1.1.2
REQUEST confirm the IP
0.0.0.0 1.1.1.1
sourceIP: 0.0.0.0
destIP: 255.255.255.255
ACKNOWLEDGE
1.1.1.2 1.1.1.1
sourceIP: 1.1.1.1
destIP: 255.255.255.255
IP-MAC DHCP Binding
How DHCP server always assign the same IP address to the same PC?
51:aa:bc:18:19:20
IP Address MAC address
1.1.1.2 51:aa:bc:18:19:20
1.1.1.4 na
DNS
(2) What is the IP
Reply
address of
www.avotechtv.com? DNS Server
Authoritative
DNS
DNSSEC
DNS Poisoning
• DNS request/response in cleartext
• DNS records can be modified by attackers during transit
• Attacker can also hack into the DNS servers to change the IP:URL mapping
8.8.8.8
LEGIT
DNS URL IP
avotechtv 11.11.11.11
Server 216.58.221.206
17.253.144.10
11.11.11.11
Web
Server normal server
IP: 10.10.10.10
192.168.1.1 URL:
8.8.8.8 URL IP
nslookup
Web
Server
IP: 10.10.10.10
192.168.1.1 URL:
Rogue
Server
IP: 11.11.11.11
URL:
How DNSSEC works?
DNS records DNS records + DNSSEC SIG
DNS Poisoning
• DNS request/response in cleartext
• DNS records can be modified by attackers during transit
• Attacker can also hack into the DNS servers to change the IP:URL mapping
8.8.8.8
URL IP
DNS avotechtv 10.10.10.10
google.com 216.58.221.206
Server
apple.com 17.253.144.10
nslookup
Web
Server
IP: 10.10.10.10
192.168.1.1 URL: avotechtv.com
Rogue
Server
IP: 11.11.11.11
URL: avotechtv.com
example for slide 22 / DNS Poisoning
Hypertext Transfer Protocol
(HTTP)
HTTP - NOT SECURE
HTTPS - SECURE
Browser
Browser
Chrome OS (browser OS)
HTTP
• For sending/receiving hypermedia documents (like HTML)
HTML - CREATE
WEBSITE
• Client send http_request, Server reply with http_response
FILE
FILE
DESTINATION
IP
IP
BUT WE SAW IS WEB PAGE
HTTP EXAMPLE
Web
http_request (GET/POST ‘main.html’)
Server
main.html
HTTP Path
only http got port,
so no secure
http/https got deeper or shortcut to
www destination
https://avocafe1989.wixsite.com
https://avocafe1989.wixsite.com:8080
https://avocafe1989.wixsite.com:8080/main.html
https://avocafe1989.wixsite.com:8080/assessments.html
HTTP Versions
HTTP HTTPS
•Passwords are sent in plaintext •Only the authorised users can see the
content.
WEB 1.0, 2.0, 3.0
•Web 1.0 - static webpages, to display information
•Web 2.0 - interactive webpages, content creation, video streaming, browser games
•Web 3.0 - like web2.0, but decentralised
HTML
•HyperText Markup Language (HTML) is the language websites are written in.
•Web browser like Chrome reads HTML document and display the website based on
the ‘code’ in the HTML file.