News for hackers. Stuff that matters.
Re:DNSCrypt – A protocol to improve DNS security by gwu78 on Thursday March 30, 2017 @12:59AM (#13993039)
I prefer http://curvedns.on2it.net

This was the original.

Other than having to modify their ksh script, it is painless to set up.

In my opinion, authoritative nameservers, and therefore DNSCurve forwarders like CurveDNS, are more important than recursive resolvers/caches such as OpenDNS and DNSCrypt.

A recursive resolver should be authoritative for nothing. They are middlemen. Companies that offered this "service", such as OpenDNS, had to pander to advertisers, or were run by advertising companies themselves, e.g., Google.

The "rules" of DNS are easily broken. This applies to caches. One does not need to look very far to find resolvers that someone has designated as "authoritative". dnsq: "weird ra". This often means an open resolver IME.

A while back some companies including the ones named above if I am not mistaken were pushing for extensions in DNS to put at least part of user IP addresses into DNS packets so cache operators could track them. The reason? Advertising. (Although maybe they would cite other reasons.) Not sure what ever happened with that. BIND had started to implement it. Thankfully djbdns will never support this garbage.

This kind of nonsense is why I cannot get excited about the latest extensions to internet protocols anymore.

Too often they are for the benefit of web companies and advertisers, not users.

The "encrypted DNS revolution", if it ever comes, is not going to be initiated by companies running recursive resolvers. (Unless they also run authoritative nameservers.)

Note: When the user runs their own cache on localhost there is no need to determine nearest POP.

Re:DNSCrypt – A protocol to improve DNS security by LogicX on Thursday March 30, 2017 @03:06AM (#13993499)
So much to respond to here.

I am one of those companies running a recursive DNS service, DNSFilter.com

We are not advertising driven. OpenDNS cut the ads a few years ago.

We do not run open resolvers, we just have paying customers who wish to use our service.

The DNS extensions you are referring to are the EDNS0 Client Subnet extension. It is in wide use by authoritative servers for major CDNs and is supported by a number of recursive DNS providers. See the spec here: https://tools.ietf.org/html/draft-ietf-dnsop-edns-client-sub... Section 11 addresses your concerns about IP addresses being shared: It is encouraged to provide only as much granularity as is necessary based on network architecture. At no time is there a reason to share the last octect of an address (since Internet BGP routing is limited to a /24)

We do not run an authoritative DNS service, yet are working to improve encrypted communications... in coordination with industry authoritative partners. Very early stages, but we are driven to protect our customers and the Internet at large. Every time I hear someone misunderstanding what DNSSEC is, and why they think they want it, I'm encouraged to work on solutions such as dnscrypt or DNS over TLS: https://tools.ietf.org/html/rfc7858

Re:DNSCrypt – A protocol to improve DNS security by geocar on Thursday March 30, 2017 @04:04AM (#13993698)
Hi there, I work in advertising, and I absolutely use the EDNS0 data to track users. I'm okay with a 1:250ish potential error rate since outside of facebook and google, you probably don't go to the same websites as your neighbour.

Thanks for your hard work.

Re:DNSCrypt – A protocol to improve DNS security by pfg on Thursday March 30, 2017 @06:33AM (#13994237)
I'm curious: what's the reason for doing this rather than just logging the IP addresses that hit your server directly? Is this a way to get around VPNs that leak the real IP via DNS? Or does this allow you to get something back from users with ad blockers that block the request, but no the DNS lookup (I don't know if this is the case)? Is it just a performance optimization (just a DNS lookup vs. a HTTP request)?
Re:DNSCrypt – A protocol to improve DNS security by geocar on Thursday March 30, 2017 @07:14PM (#13999763)
I don't have a server for them to hit directly: My DNS server always returns NXDOMAIN.
Re:DNSCrypt – A protocol to improve DNS security by chillydawg on Thursday March 30, 2017 @05:47AM (#13994041)
How does that work?
Re:DNSCrypt – A protocol to improve DNS security by geocar on Thursday March 30, 2017 @05:59AM (#13994087)
I log the requests to my DNS servers.

My client embeds information I need into the host part and the custom DNS server always returns NXDOMAIN.

Re:DNSCrypt – A protocol to improve DNS security by GTP on Thursday March 30, 2017 @11:10AM (#13996036)
From section 11 of the draft: "To protect users' privacy, Recursive Resolvers are strongly encouraged to conceal part of the IP address of the user by truncating IPv4 addresses to 24 bits. 56 bits are recommended for IPv6, based on [RFC6177]. ISPs should have more detailed knowledge of their own networks. That is, they might know that all 24-bit prefixes in a /20 are in the same area. In those cases, for optimal cache utilization and improved privacy, the ISP's Recursive Resolver SHOULD truncate IP addresses in this /20 to just 20 bits, instead of 24 as recommended above. Users who wish their full IP address to be hidden need to configure their client software, if possible, to include an ECS option specifying the wildcard address (i.e. SOURCE PREFIX-LENGTH of 0). As described in previous sections, this option will be forwarded across all the Recursive Resolvers supporting ECS, which MUST NOT modify it to include the network address of the client".

So it's suggested that DNS providers and ISPs use only a portion of the IP address but they aren't forced to do so (and how could they be forced anyway?). Then it says that users that don't want to send their IP address should configure their software accordingly, but again only "if possible" so again no guarantee that it would be possible. Now a question: I don't see why a DNS packet would contain the client's IP address and a (I admit too quick) look at the draft didn't provided any information. Could you please elaborate on the supposed advantages of this practice?

Re:DNSCrypt – A protocol to improve DNS security by MichaelGG on Thursday March 30, 2017 @11:26AM (#13996183)
It's to return local DNS records so you resolve to a nearby server.
Re:DNSCrypt – A protocol to improve DNS security by GTP on Friday March 31, 2017 @07:16AM (#14002670)
I have one more question. DNS requests are carried by the IP protocol, so when someone makes a DNS interrogation the DNS server already gets the client's full IP address in the IP header. Isn't redundant to place (a portion of) the IP address in a DNS packet? Or maybe for some reason the DNS server is quicker to get this information from the DNS packet rather than from the IP packet's header?
Re:DNSCrypt – A protocol to improve DNS security by MichaelGG on Friday March 31, 2017 @08:50AM (#14003143)
I use e.g. 8.8.8.8 as my DNS server. When that server needs to request a record for me, the other servers it connects to will only see 8.8.8.8. With this extension, the 8. server will embed my subnet into the request and allow upstream servers to see part of my IP.
Re:DNSCrypt – A protocol to improve DNS security by sGatling1788 on Thursday March 30, 2017 @10:44AM (#13995764)
How was OpenDNS able to cut the ads yet provide free service?
Re:DNSCrypt – A protocol to improve DNS security by tresni on Sunday April 02, 2017 @01:12AM (#14015903)
Full Disclosure - work for Cisco/OpenDNS. https://www.opendns.com/no-more-ads/ talks about why we shut off ads. As to "how" we were able to. We do offer paid services to both home and business (SMB through Enterprise) users. Additionally, we are a security and data company -- free service feeds into data driven models for security that benefits all suers.
Re:DNSCrypt – A protocol to improve DNS security by papaf on Thursday March 30, 2017 @01:18AM (#13993108)
It quite easy to setup DNSCrypt with OpenNIC[1] and then a lot of the downsides that you mention go away.

Here is some background and setup instructions:

https://markbrown778.wordpress.com/2014/08/08/dns-privacy-us...

[1] https://www.opennicproject.org/

Re:DNSCrypt – A protocol to improve DNS security by xorcist on Thursday March 30, 2017 @04:28AM (#13993774)
I am skeptical to its architecture. This is 2017 and there are compelling reasons for endpoints to do resolving on their own. To get rid of open resolvers would be nice.

"But .. caching", well, the performance of resolvers is perhaps not as clear cut as that. Performance would suffer for some, but they can clearly handle it, and does it really matter?

Some real world testing would surely be beneficial. In the mean time, I'm not sure about solutions to the resolver data leak problem. It is a solution to a problem we should not have.

Re:DNSCrypt – A protocol to improve DNS security by MertsA on Thursday March 30, 2017 @02:06AM (#13993285)
>The reason? Advertising.

Or the ability to accurately direct users to the nearest POP.

Re:DNSCrypt – A protocol to improve DNS security by bluejekyll on Thursday March 30, 2017 @11:13AM (#13996066)
Yes, for people who don't know, this is how many things like directing users to a closer TLS endpoint for HTTP such that the overall connection suffers less latency.
Re:DNSCrypt – A protocol to improve DNS security by fidget on Thursday March 30, 2017 @01:50PM (#13997422)
Isn't anycast ip usually used for that instead?
Re:DNSCrypt – A protocol to improve DNS security by bluejekyll on Thursday March 30, 2017 @02:34PM (#13997770)
It entirely depends, anycast is great for getting a request to the closest DNS endpoint via routing weight rules.

After that, there are many options. But the GP was specifically mentioning a valid use case where this is applicable and not shady.