Professional Documents
Culture Documents
Lecture 9 (DNS) PDF
Lecture 9 (DNS) PDF
(Computer Networks)
Vishal Gupta
Department of Computer Science and Information Systems
BITS Pilani Birla Institute of Technology and Science
Pilani|Dubai|Goa|Hyderabad
Pilani Campus, Pilani
BITS Pilani
Pilani|Dubai|Goa|Hyderabad
… …
Application Layer 2-7 BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Local DNS name server
• does not strictly belong to hierarchy
• each ISP (residential ISP, company, university)
has one
– also called “default name server”
• when host makes DNS query, query is sent to
its local DNS server
– has local cache of recent name-to-address
translation pairs (but may be out of date!)
– acts as proxy, forwards query into hierarchy
Application Layer 2-8 BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
DNS name root DNS server
resolution example
2
• host at cis.poly.edu 3
TLD DNS server
wants IP address for 4
gaia.cs.umass.edu 5
gaia.cs.umass.edu
gaia.cs.umass.edu
type=A type=CNAME
name is hostname name is alias name for some
value is IP address “canonical” (the real) name
type=NS www.ibm.com is really
– name is domain (e.g., servereast.backup2.ibm.com
foo.com) value is canonical name
– value is hostname of
authoritative name server type=MX
for this domain
value is name of mailserver
associated with name
Application Layer 2-12
DNS protocol, messages
• query and reply messages, both with same message format
2 bytes 2 bytes
2 bytes 2 bytes
identification flags
Application Layer 2-15 BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Attacking DNS
DDoS attacks Redirect attacks
• Bombard root servers • Man-in-middle
with traffic – Intercept queries
– Not successful to date • DNS poisoning
– Traffic Filtering – Send bogus relies to DNS
– Local DNS servers cache IPs server, which caches
of TLD servers, allowing Exploit DNS for DDoS
root server bypass
• Bombard TLD servers • Send queries with
spoofed source address:
– Potentially more
dangerous target IP
• Requires amplification