Slide 1

Slide 1 text

MORE CATS THE INTERNET needs

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

I’M MONICA @notwaldorf

Slide 4

Slide 4 text

DNS

Slide 5

Slide 5 text

DNS domeow name system

Slide 6

Slide 6 text

DNS GOOGLE.COM ☛ 74.125.226.134

Slide 7

Slide 7 text

CAT-DNS GOOGLE.COM ☛ cats? cats!!

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

EVEN? HOW DOES it

Slide 11

Slide 11 text

UDP USER DATAMEOW PROTOCOL

Slide 12

Slide 12 text

UDP it’s the honey badger

Slide 13

Slide 13 text

8.8.8.8

Slide 14

Slide 14 text

8.8.8.8 800,000 rEq/sec

Slide 15

Slide 15 text

8.8.8.8 70 billion rEq/day

Slide 16

Slide 16 text

8.8.8.8 avg: 45 ms

Slide 17

Slide 17 text

CAT-DNS avg: 7 ms

Slide 18

Slide 18 text

CAT-DNS but only knows cats

Slide 19

Slide 19 text

so basically

Slide 20

Slide 20 text

www.images.google.com? YOU DNS

Slide 21

Slide 21 text

www.images.google.com? YOU DNS images.google.com TTL: 5 minutes ip: 74.125.226.104

Slide 22

Slide 22 text

DOMAIN Name Server RNS www.images.google.com? YOU

Slide 23

Slide 23 text

Recursive Name Server RNS www.images.google.com? YOU

Slide 24

Slide 24 text

RNS www.images.google.com? I DON’T KNOW BUT I CAN ASK YOU

Slide 25

Slide 25 text

ROOT RNS images.google.com? ROOT NAME SERVER YOU

Slide 26

Slide 26 text

ROOT RNS .com .org .biz I KNOW THE TLDS YOU images.google.com?

Slide 27

Slide 27 text

ROOT RNS .com ASK THE .COM SERVER YOU images.google.com?

Slide 28

Slide 28 text

ROOT RNS .COM YOU images.google.com?

Slide 29

Slide 29 text

ROOT RNS .COM I’M GETTING HUNGRY YOU

Slide 30

Slide 30 text

ROOT RNS .COM google yahoo imgur YOU images.google.com?

Slide 31

Slide 31 text

ROOT RNS .COM GOOGLE YOU images.google.com?

Slide 32

Slide 32 text

ROOT RNS .COM GOOGLE authoritative YOU images.google.com?

Slide 33

Slide 33 text

ROOT RNS .COM GOOGLE 74.125.226.135 YOU images.google.com?

Slide 34

Slide 34 text

74.125.226.135 ROOT RNS .COM GOOGLE YOU

Slide 35

Slide 35 text

ROOT RNS .COM GOOGLE YOU yay !

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

CACHING ain’t no one got time

Slide 38

Slide 38 text

TTL time to live

Slide 39

Slide 39 text

browser cache chrome://net-internals/#dns

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

WORKS FOR ME BUT not for you…wat?!

Slide 42

Slide 42 text

www.whatsmydns.net

Slide 43

Slide 43 text

DANGER ZONE what can go wrong?

Slide 44

Slide 44 text

DANGER ZONE cache poisoning

Slide 45

Slide 45 text

ROOT RNS .COM images.google.com? YOU

Slide 46

Slide 46 text

ROOT RNS .COM ☢ YOU images.google.com TTL: 10000 minutes ip: 66.000.000.66 images.google.com?

Slide 47

Slide 47 text

ROOT RNS .COM ☢ YOU trololololololol images.google.com?

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

THE RFC? DID YOU EVEN read

Slide 50

Slide 50 text

(no)

Slide 51

Slide 51 text

REALTALK 1987 RFCS ARE PAINFUL RFCS

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

your cat * how to spy on * if your cat is a DNS server

Slide 54

Slide 54 text

NSLOOKUP use: nslookup google.com

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

DIG use: dig google.com

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

9:30 am yay, code! because

Slide 72

Slide 72 text

“I'LL OFTEN DROP DOWN TO NODE.JS IF I REALLY NEED TO BE CLOSE TO THE METAL” - SOMEONE ON HACKER NEWS

Slide 73

Slide 73 text

require(‘node-bitarray’) ! require(‘buffer’).Buffer ! require(‘dgram’) ! require(‘ip’)

Slide 74

Slide 74 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 75

Slide 75 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 76

Slide 76 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 77

Slide 77 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 78

Slide 78 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 79

Slide 79 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 80

Slide 80 text

var dnsServer = dgram.createSocket('udp4'); dnsServer.bind(53,'localhost'); ! dnsServer.on('message', function (msg, rinfo) { // Parse message. // Transmogrify into response. // Resolve to cat-service OR imgur. // Giggle. ! dnsServer.send(=^_^=); }

Slide 81

Slide 81 text

imgur how to be a cat authority

Slide 82

Slide 82 text

No content

Slide 83

Slide 83 text

NO lessons some lessons are better than

Slide 84

Slide 84 text

what now? slow dns means less cats

Slide 85

Slide 85 text

what now? pick a faster one

Slide 86

Slide 86 text

what now? host your own? bind!

Slide 87

Slide 87 text

what now? get around geolocation

Slide 88

Slide 88 text

what now? https:// /notwaldorf/cat-dns

Slide 89

Slide 89 text

what now? STEALING WIFI JUST GOT WEIRD

Slide 90

Slide 90 text

@notwaldorf ❤