News for hackers. Stuff that matters.
Re:P2P DNS by simoncion on Saturday April 30, 2016 @09:16PM (#11604436)
Not that I'm criticising the work, but DNS is already P2P; it is -by design- a federated system. However, -as Mononofu's project's README notes- it is not highly tamper resistant. [0]

I know that one could see this as a petty quibble, but just because something isn't tamper resistant doesn't mean it's not a P2P system. :)

[0] I make liberal use of this lack of tamper resistance to provide various levels of ad and tracking blocking for all systems on my LAN. BIND's RPZs (and mechanisms similar to them) are pretty great.

Re:P2P DNS by sargun on Saturday April 30, 2016 @10:29PM (#11604593)
I don't think DNS is P2P in the sense that all actors in the system are homogenous and equipotent. Although modern P2P systems have supernodes, they usually serve the purpose of rendezvous, and not typical operationl

DNS is a more of a hierarchical system, where the roots are at the center, and they delegate trust and responsibility as necessary.

Re:P2P DNS by yyin on Sunday May 01, 2016 @01:30AM (#11605004)
This is a more accurate description IMO. However DNS does not have to be that way. Before DNS there used to be file sharing of all the data via a single file in the simple "HOSTS file" format. Then there was a feature in DNS for sharing all the data of each nameserver, in a "zone file" format. With network bandwidth as it is today, sharing of data in bulk could be quite useful to make DNS more peer-to-peer like. People still share data, e.g., block lists. But, practically speaking, everyone running a nameserver connected to the public internet disables axfr.

Also, in my view peer-to-peer supernodes do not monitor or forward all data, they only maintain address information of the peers (rendezvous as you say). DNS, as it is implemented on the public internet, is ripe with passive monitoring as all data flows through centralised points in the tree. Leaves, at the network's edge, are expected to be "dumb", needing to make hundreds single requests for the same information, 365 days per year, even when the majority of it is relatively static.

Every query and response packet containing a seemingly useless "Query" field that never varies from "1". There's no pipelining (when using TCP) or packets containing more than one query.

From what I understand there was interest in so-called "P2P DNS" in reaction to various incidents of censorship via the centralised points in the tree. If the leaves were truly connected as "peers", and sharing the database data directly "peer to peer", then we might have better protections against censorship.

Incidentally, "DNSSEC", as advertised, appears to anticipate centralisation and usage as a CA-like system where peers at the network edge are not only dumb but incapable or verifying messages themselves without involvement of third parties.

In contrast, encrypting DNS packets requires no third party assistance. It can be done by peers all by themselves. A client can encrypt queries and a nameserver can encrypt replies. Well suited to peer-to-peer style usage of DNS. Bulk DNS data can be rysnc'd between peers over SSH, or perhaps mrysnc'd among groups of peers.

There is "DNS" as implemented so far and then there is "what's possible" using DNS. Peer to peer sharing of the data is hardly far-fetched. But it does not yet seem to have caught on outside of small groups doing passive monitoring, blocking and other manipulation.

Re:P2P DNS by simoncion on Sunday May 01, 2016 @03:50AM (#11605325)
> I don't think DNS is P2P in the sense that all actors in the system are homogenous and equipotent. ... DNS is a more of a hierarchical system, where the roots are at the center, and they delegate trust and responsibility as necessary.

So, on the one hand I see where you're coming from and your comments are totally valid.

On the other hand, there is no actual centralized authority to which one must appeal to to get data into DNS. Want to have porn site blocking? OpenDNS has you covered! [0] Want to attach Namecoin's .bit TLD into your DNS tree? That's available on my LAN and -when last I checked- through a few Internet-accessible DNS servers. Ad/malvertizing blocking for every client attached to your network? Again, just point to (or stand up) a DNS server that's appropriately configured.

In DNS, the "edges" have just as much power as the nodes in the "center", but their sphere of influence is often much smaller.

[0] https://support.opendns.com/entries/46060260-FamilyShield-Ro...

Re:P2P DNS by vertex-four on Sunday May 01, 2016 @07:20AM (#11605770)
So how do I register foobar.com in such a way that everyone using DNS can access it without paying an organisation registered (directly or indirectly) with ICANN?

Filtering can be done - certain very-small-scale extensions can be done - and local DNS networks can be done - but if you take the goal of DNS-as-a-global-service as "provide globally unique, globally available name resolution", it very much is centralised.

Re:P2P DNS by chris_wot on Sunday May 01, 2016 @12:37AM (#11604898)
A federated system does not necessarily imply that it is a P2P system. A P2P system, however, is definitely federated.
Re:P2P DNS by teddyh on Saturday April 30, 2016 @09:24PM (#11604458)
What about DNSSEC? Does this not add tamper proofing?
Re:P2P DNS by KaiserPro on Sunday May 01, 2016 @04:40AM (#11605425)
It does, to a lesser or greater extent. The problem is that the root node/TLD provides trust for everything below it. This means that like HTTPS trust is also centralised (but also federated, which is even worse.)

However I'm not an expert in DNSSEC so there could be nuances that I'm missing

Re:P2P DNS by simoncion on Saturday April 30, 2016 @09:57PM (#11604531)
I'm not going to talk about DNSSEC [0], but I will make the argument that DNSSEC isn't DNS, but rather a DNS extension.

[0] Mostly because being able to intelligently talk about it is currently way above my pay grade.

Re:P2P DNS by teddyh on Thursday May 05, 2016 @07:21AM (#11635158)
That’s slightly like arguing that TCP is not IP but an extension of IP.
Re:P2P DNS by agumonkey on Sunday May 01, 2016 @06:17AM (#11605632)
Just yesterday I was reading and trying to setup dnscrypt. I don't understand how it differs with DNSSEC yet (if it does).
Re:P2P DNS by pilif on Sunday May 01, 2016 @07:09AM (#11605748)
dnscrypt protects the traffic between you and your resolver.

DNSSEC makes sure that the records presented by your domain have not been tampered with (though in fact it only makes sure that the records have not been tampered with by anyone but the registry or the government the registry is controlled by)