dns-based service discovery...service discovery let things find other things find out how to talk to...

35
DNS-BASED SERVICE DNS-BASED SERVICE DISCOVERY DISCOVERY Matt Palmer <[email protected]>

Upload: others

Post on 30-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

DNS-BASED SERVICEDNS-BASED SERVICEDISCOVERYDISCOVERY

 

Matt Palmer

<[email protected]>

Page 2: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

QUESTIONS?QUESTIONS?

Photo by Horia Varlan, http://www.flickr.com/photos/horiavarlan/4273168957/, CC-BY

Page 3: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

SERVICE DISCOVERYSERVICE DISCOVERYLet things find other thingsFind out how to talk to otherthings

Page 4: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

psql -h 192.0.2.42

Page 5: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

vi /etc/hosts

psql -h dbserver

Page 6: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

vi zones/example.com

psql -h dbserver

Page 7: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql
Page 8: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql
Page 9: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql
Page 10: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

OPTIONS?OPTIONS?consuletcdzookeeperdoozereurekasynapse...

Page 11: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

SOOOOO MANY OPTIONSSOOOOO MANY OPTIONS

Page 12: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

HERE'S ANOTHER ONE...HERE'S ANOTHER ONE...

Page 13: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

RFC6763: DNS-BASEDRFC6763: DNS-BASEDSERVICE DISCOVERYSERVICE DISCOVERY

Page 14: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

SERVICE INSTANCESSERVICE INSTANCES

Page 15: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 31337 app-0146de

Page 16: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 31337 app-0146de

Page 17: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 31337 app-0146de

Page 18: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 31337 app-0146de

foo._app._tcp SRV 1 1 31337 app-b34c68

foo._app._tcp SRV 1 1 31337 app-557fc3

foo._app._tcp SRV 1 1 31337 app-ab46f2

Page 19: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 31337 app-0146de

foo._app._tcp SRV 1 1 31337 app-b34c68

foo._app._tcp SRV 1 3 31337 app-557fc3

foo._app._tcp SRV 1 1 31337 app-ab46f2

Page 20: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp SRV 1 1 5432 db-876cfe

foo._app._tcp SRV 2 1 5432 db-a2cfe6

Page 21: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

SERVICE ENUMERATIONSERVICE ENUMERATION

Page 22: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

_app._tcp PTR foo._app._tcp

_app._tcp PTR bar._app._tcp

Page 23: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

METADATAMETADATA

Page 24: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

foo._app._tcp TXT \

"path=/something/funny" \

"baz=wombat"

Page 25: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

WHY ISN'T EVERYONEWHY ISN'T EVERYONEDOING IT?DOING IT?

Page 26: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

"IT'S JUST SOME DESKTOP"IT'S JUST SOME DESKTOPTHING"THING"

Page 27: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

"IT'S ALWAYS DNS!""IT'S ALWAYS DNS!"

Page 28: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

Image by woodleywonderworks, https://flic.kr/p/4ZP5ki, CC-BY

Page 29: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

"NOBODY SUPPORTS SRV"NOBODY SUPPORTS SRVRECORDS!"RECORDS!"

Page 30: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

WHY YOU SHOULD USE DNS-SDWHY YOU SHOULD USE DNS-SD

Page 31: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

YOU'RE ALREADY USINGYOU'RE ALREADY USINGDNSDNS

Page 32: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

ALL STANDARDALL STANDARDCOMPONENTSCOMPONENTS

Page 33: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

MORE COMPLETE SOLUTIONMORE COMPLETE SOLUTIONTHAN MOSTTHAN MOST

Page 34: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

DNS-SD: IT'S AWESOME!DNS-SD: IT'S AWESOME!

Page 35: DNS-BASED SERVICE DISCOVERY...SERVICE DISCOVERY Let things find other things Find out how to talk to other things. psql -h 192.0.2.42 . vi /etc/hosts ... vi zones/example.com psql

Image by woodleywonderworks, https://flic.kr/p/8fzSe1, CC-BY