CS138-lecture-20210302

DNS cont. #

image_2021-03-02-09-00-55

For a backup authoritative DNS server (secondary), resource records inserted into .com TLD DNS server, by DNS registrar:

(networkutopia.com, dns2.networkutopia.com, NS, TTL)
(dns2.networkutopia.com, 212.212.212.2, A, TTL)

In your company’s authoritative DNS server, you should have the following resource records for web server, email server (etc):

(www.networkutopia.com, somethingelse.networkutopia.com, CNAME, TTL)
(somethingelse.networkutopia.com, 212.212.212.56, A, TTL)
(networkutopia.com, mailserver.networkutopia.com, MX, TTL)
(mailserver.networkutopia.com, 212.212.212.89, A, TTL)

image_2021-03-02-09-16-13

DNS Poisoning #

Lets say its the first time that we are visiting a site, we will first ask the local DNS …

image_2021-03-02-09-19-02

What if a man in the middle (in the same local area network with client), he can intercept the query from the client.

image_2021-03-02-09-21-33

At the 7th step, the man in the middle can send a reply on behalf of the root.

image_2021-03-02-09-22-17

The faked 7th step is a bogus answer to the clients query.

So if we’re asking for www.abcd.com, and the real address is 123.54.8.9, the bogus answer will respond with a different IP address. The bogus IP will arrive at the local DNS before the real one will, and it will be cached. If the faked website looks identical to the real one, they can have their information stolen.

DNS-based DDoS #

Query: what is the IP address for www.abcd.com? The source IP should be the client’s IP.

But what if the client is part of the attack? So maybe the query is actually: what is the IP address for www.abcd.com, BUT the client changed their source IP address to be the same IP as (for example) Google? So this will redirect step 8 back to Google:

image_2021-03-02-09-35-28

What if we can manage to have 1 million machines do the same thing?

image_2021-03-02-09-37-19

This can overwhelm the server.

P2P (Peer to peer) #

image_2021-03-02-09-40-53 image_2021-03-02-09-41-22 image_2021-03-02-09-44-57 image_2021-03-02-09-46-24

This increases linearly with \( N \) .

image_2021-03-02-09-55-44 image_2021-03-02-09-55-52 image_2021-03-02-09-57-55 image_2021-03-02-09-59-52 image_2021-03-02-10-00-45 image_2021-03-02-10-02-55 image_2021-03-02-10-12-32 image_2021-03-02-10-12-52