r/privacy • u/[deleted] • Apr 29 '19
DNS over HTTPS is coming whether ISPs and governments like it or not
https://nakedsecurity.sophos.com/2019/04/24/dns-over-https-is-coming-whether-isps-and-governments-like-it-or-not/4
3
u/ThePenultimateOne Apr 29 '19
Who was the guy that decided DNS-over-TLS should use the same port as normal TLS traffic? It is reasonable to want to have your router serve as a DNS bridge, and this makes that impossible.
2
u/0xf3e Apr 30 '19
DoT doesn't use 443, instead it's using 853.
1
u/ThePenultimateOne Apr 30 '19
Then whats up with the top comment saying otherwise?
→ More replies (2)
7
Apr 29 '19
Should you need one, here's a great DNS service that already implements both DoT and DoH: https://www.quad9.net/faq/
2
u/sevengali Apr 29 '19
In collaboration with the Global Cyber Alliance according to their homepage
https://www.globalcyberalliance.org/who-we-are/#founding-organizations
1
Apr 30 '19
so?
2
u/sevengali Apr 30 '19
The link I supplied shows the GCA is founded by multiple police forces.. I'd rather not hand my DNS queries over to them.
2
1
1
u/guitcastro Apr 29 '19
I'd love to see some alternatives not back up by Google like: https://blockchain-dns.info.
2
u/01001010_01000100 Apr 29 '19
Has anyone tested this, to see who really owns this and how secure it is?
→ More replies (1)
0
Apr 29 '19
[deleted]
11
u/leftleveled Apr 29 '19
I don't like the idea of blocking based on dns anyway. It can already be overridden by hardcoding IPs. For e.x., a local hosts file in an untrusted device.
7
u/lihaarp Apr 29 '19
Using DNS is simply practical. There are so many reasons an IP address can or needs to change, that pretty much every service will prefer DNS over hardcoded IPs.
4
Apr 30 '19
For a dedicated "attacker", there are many alternative ways to perform domain resolution without hardcoded IPs. For example, a device could periodically download a file containing domain resolution information from a widely-used cloud provider using a secure protocol. This could ultimately be blocked but not without effort.
Some of these techniques are already in use in the wild by messaging apps that aim to bypass censorship in countries like Turkey or Egypt, which use relatively unsophisticated DNS blocking techniques.
5
Apr 29 '19
[removed] — view removed comment
6
Apr 29 '19
Untrusted devices shouldn’t be on your network
That sounds like the right answer.
Many home routers come with an untrusted "guest" network option.
TVs, kids toys, non-rooted android phones, etc. should all be outside your firewall, not inside it.
2
u/yardmonkey Apr 30 '19
It quickly gets murky with devices like Chromecast that need to be on the same segment as your phone in order to cast.
→ More replies (2)122
u/Legalize-Cocaine Apr 29 '19
Some CIA and NSA guys worked really hard on that news article and you go ahead and ruin the astroturfing campaign. Shame on you.
7
u/bluehands Apr 29 '19
While it is certain that many state level actors shape public opinion, I am having a hard time understanding how secure dns requests benefit them.
→ More replies (1)14
23
Apr 29 '19
I have a rule setup in my router to block and redirect any request on port 53 to my pihole. It's gotten around my Google home and chromecast hard coded DNS.
3
Apr 30 '19
That only works because Google home and Chromecast respect the convention of using port 53 for DNS.
2
0
Apr 29 '19
[deleted]
3
u/TheFondler Apr 29 '19
Am I missing something, or couldn't you just redirect the DNS IPs to the PiHole as well? What am I forgetting?
14
→ More replies (2)2
Apr 30 '19
You might be able to block DoH requests that way but you wouldn't be able to inspect the requests or modify the responses.
16
u/Aro2220 Apr 29 '19
When I saw that Google was involved I stopped hoping for privacy. Obviously they have a way to exploit this ...
3
Apr 30 '19
Well yeah, you'll be sending all your DNS requests to them so they'll get a massive stream of information about what domains you visit.
7
u/dragonatorul Apr 29 '19
You can block port 443 to 8.8.8.8 for all devices except your pihole. Well, at least with a decent router you should be able to do that.
2
5
Apr 29 '19
You can null route 8.8.8.8, 8.8.4.4, 9.9.9.9, et al as they’re only used to deliver DNS
0
Apr 29 '19
[deleted]
2
u/shyouko Apr 29 '19
I guess applications (Chrome / Firefox) would happily get their DoH host IP via traditional DNS then proceed to forward all DNS request over DoH.
For DoH to work on network infra level, we'll need hard coded IP as DoH resolver.
1
u/bluehands Apr 29 '19
As far as I can tell, DoH will user the same certificate chain that any https request uses. Someone can spoof your dns but if they don't have the private certificate for google.com then devices that use DoH will ignore the response.
1
u/lihaarp Apr 29 '19
Wait, DoH resolves the resolver's name before sending requests? How does it bootstrap that?
→ More replies (1)2
u/bigshmoo Apr 29 '19
If your net allows an un trusted device to make connections to 443, dns or otherwise, you already have this risk.
1
Apr 30 '19
There's nothing magical about specific ports, an untrusted device could send encrypted data over port 80 just as easily as 443.
1
u/bigshmoo Apr 30 '19
Exactly. Allowing dns over 443 is no worse than allowing any other outbound encrypted connection.
2
u/hemingray Apr 30 '19
Already blocked those at the firewall. DoH not happening inside my network. May set it up on my Pi-Hole though.
1
u/Vovochik43 Apr 29 '19
Or you can block any outgoing traffic to a list of known DNS server you don't support. But yeah, it's slightly more tricky with this technology.
1
Apr 30 '19
DoH does make it a bit harder to monitor and restrict the behavior of devices on your network, but only those that are already "cooperating" with your network controls by using DHCP-provided nameservers, following port conventions, etc. There are already many ways for malicious devices to bypass home DNS controls without DoH.
The main tradeoff with DoH is that your ISP won't know what DNS requests you're making, but your DoH provider will instead. (Your ISP will still be able to monitor what IPs you connect to, though, and may be able to gather enough information from this to deduce the domains you're accessing.)
The benefit of encrypted DNS in general is better protection against DNS snooping, spoofing, or blocking attacks on the network.
1
0
0
Apr 29 '19
[deleted]
1
Apr 29 '19
It’s not a 1-1 mapping with HTTP, so not exactly true. Any number of sites may map to an IP address.
1
0
Apr 29 '19
[deleted]
5
u/killhha Apr 29 '19
It exists but it's still in very early stages, rarely encountered in the wild up until now
0
Apr 29 '19
[deleted]
0
Apr 29 '19
[deleted]
1
u/pred Apr 29 '19
As does Google. And it's supported out-of-the-box in Android Pie.
It's also extremely easy to set up locally using e.g. Unbound.
0
7
Apr 29 '19
[removed] — view removed comment
4
Apr 30 '19
Of course Cloudflare is probably one of the most egregious data mining companies out there.
0
Apr 30 '19
[deleted]
1
Apr 30 '19
Even when they try their hardest not to (lawyering up, etc), they are still sometimes forced to by governments that regulate them.
Ken Carter of Cloudflare wasn't even able to correct a Senate staffer who told him things that were completely untrue.
In early 2014, I met with a key Capitol Hill staffer who worked on issues related to counter-terrorism, homeland security, and the judiciary. I had a conversation where I explained how Cloudflare values transparency, due process of law, and expressed concerns that NSLs are unconstitutional tools of convenience rather than necessity. The staffer dismissed my concerns and expressed that Cloudflare’s position on NSLs was a product of needless worrying, speculation, and misinformation. The staffer noted it would be impossible for an NSL to issue against Cloudflare, since the services our company provides expressly did not fall within the jurisdiction of the NSL statute. The staffer went so far as to open a copy of the U.S. Code and read from the statutory language to make her point.
That's what a gag order does: allows misinformation to go uncorrected. The staffer's interpretation of US Code may have been more to the letter of the law, but Cloudflare's Carter knew -- from personal experience -- that the FBI's interpretation was different.
Because of the gag order, I had to sit in silence, implicitly confirming the point in the mind of the staffer. At the time, I knew for a certainty that the FBI’s interpretation of the statute diverged from hers (and presumably that of her boss).
Even if they're not intentionally trying to be evil (like Google, Facebook, etc) - simply because they have access to the information and the means to mine it, they can and are forced to do so.
85
u/Werpogil Apr 29 '19
HTTPS isn't particularly secure when in some countries the likes of FBI/CIA just come to a particular large enough resource and politely ask for the HTTPS certificates to decrypt traffic anyway. If DNS info is transported via HTTPS, then major DNS providers will get a visit from the special services and give up the certs rending the whole thing largely useless. It's how stuff is done in Russia and judging by the fact that in some cases Russia even falls behind on totalitarian control of the internet (like in case of Australia's mandated encryption backdoor thing), I suspect it's going to be a widely adopted practice among other countries.