24
P2P DNS Systems Teodor Pripoae

CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

  • Upload
    defcamp

  • View
    437

  • Download
    3

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

P2P DNS SystemsP2P DNS Systems

Teodor PripoaeTeodor Pripoae

Page 2: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

What means DNS ?What means DNS ?

Domain name systemDomain name system

Page 3: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

What means DNS ?What means DNS ?

Domain name system

Hierachical distributed naming system

Domain name system

Hierachical distributed naming system

Page 4: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

What means DNS ?What means DNS ?

Domain name system

Hierachical distributed naming system

Controlled by ICANN

Domain name system

Hierachical distributed naming system

Controlled by ICANN

Page 5: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Why changing DNS ?Why changing DNS ?

Controlled by a single entityControlled by a single entity

Page 6: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Why changing DNS ?Why changing DNS ?

Controlled by a single entity

Very easy to take down a domain by American Government or Hollywood Media Corporations with similar laws to ACTA or SOPA

Controlled by a single entity

Very easy to take down a domain by American Government or Hollywood Media Corporations with similar laws to ACTA or SOPA

Page 7: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Looks familiar ?Looks familiar ?

Page 8: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Alerternative ?Alerternative ?

Page 9: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

P2P DNS SystemP2P DNS System

Page 10: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

FeaturesFeatures

What should feature a distributed DNS system ?What should feature a distributed DNS system ?

Page 11: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

It must not have any single entity that controls the others

Conclusion: it must be P2P with not central node

It must be open source

It must not have any single entity that controls the others

Conclusion: it must be P2P with not central node

It must be open source

Page 12: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

ImplementationsImplementations

P2P-DNS: https://github.com/Mononofu/P2P-DNS

Namecoin: http://dot-bit.org/Namecoin

Censormenot: https://github.com/teodor-pripoae/censormenot

P2P-DNS: https://github.com/Mononofu/P2P-DNS

Namecoin: http://dot-bit.org/Namecoin

Censormenot: https://github.com/teodor-pripoae/censormenot

Page 13: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

P2P-DNSP2P-DNS

Records authenticated by a public/private key system

All nodes know all othe nodes and the cache all know domains

Records authenticated by a public/private key system

All nodes know all othe nodes and the cache all know domains

Page 14: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

AttacksAttacks

Atack 1: An attacker can only poison the cache of a single node

Atack 2: An attacker can flood the network with fake domains

Atack 1: An attacker can only poison the cache of a single node

Atack 2: An attacker can flood the network with fake domains

Page 15: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Defense methodsDefense methods

For attack 1: opinion of the majority is correct and a web trust (opinions of nodes are weighted by your trust to them.

For attack 2: similar tools used for email spam prevention systems

For attack 1: opinion of the majority is correct and a web trust (opinions of nodes are weighted by your trust to them.

For attack 2: similar tools used for email spam prevention systems

Page 16: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

DisadvantagesDisadvantages

Storing all key pairs

Everyone can register any domain now even those which already exist in the real dns system

Storing all key pairs

Everyone can register any domain now even those which already exist in the real dns system

Page 17: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

NamecoinNamecoin

Based on bitcoin system

.bit TLD

Similar private/public keys encryption

Buy domains with namecoins which can be converted from bitcoins

Based on bitcoin system

.bit TLD

Similar private/public keys encryption

Buy domains with namecoins which can be converted from bitcoins

Page 18: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

CensormenotCensormenot

Why is it different ?Why is it different ?

Page 19: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Not a full dns system, but a cache oneNot a full dns system, but a cache one

Page 20: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Not a full dns system, but a cache one

Add a domain lookup only when you need it.

Not a full dns system, but a cache one

Add a domain lookup only when you need it.

Page 21: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

Not a full dns system, but a cache one

Add a domain lookup only when you need it.

Multiple plausible domains based on a trust value which can be voted

Not a full dns system, but a cache one

Add a domain lookup only when you need it.

Multiple plausible domains based on a trust value which can be voted

Page 22: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

How it looks / works ?How it looks / works ?

Page 23: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

ResourcesResources

https://github.com/namecoin/namecoin

https://github.com/Mononofu/P2P-DNS

https://github.com/teodor-pripoae/censormenot

http://www.youtube.com/watch?v=YNZDhPIdaho

https://github.com/namecoin/namecoin

https://github.com/Mononofu/P2P-DNS

https://github.com/teodor-pripoae/censormenot

http://www.youtube.com/watch?v=YNZDhPIdaho

Page 24: CensorMeOrNot - P2P System of DNS Caches - DefCamp 2012

ContributorsContributors

Dan Serban: https://github.com/dserban

Alexandru Tache https://github.com/hadesgames

Dan Serban: https://github.com/dserban

Alexandru Tache https://github.com/hadesgames