News for hackers. Stuff that matters.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by pimeys on Thursday November 19, 2020 @08:10AM (#25149089)
Can DoH be used to bypass home DNS servers, such as the pihole?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by CarelessExpert on Thursday November 19, 2020 @08:15AM (#25149139)
Because DoH is implemented in the browser and bypasses the OS resolver configuration, it will specifically break things like pihole.

The correct solution is a) do this at the OS so users can configure the behaviour, b) add support to pihole or similar for making DoH requests out to somewhere like CloudFlare, c) also add support for receiving DoH requests for those people using a pihole over untrusted networks.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by pimeys on Thursday November 19, 2020 @08:33AM (#25149255)
That's what I've figured out too. A while ago I started blocking port 443 to known DoH servers to prevent any machine from internal network bypassing the pihole. I expect televisions, smart lights and many other IoT devices to start using DoH to be able to track the users with pihole installed...
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @08:55AM (#25149436)
Do you also block plain old third-party unencrypted DNS servers? Because those could also trivially be used to bypass content filtering on your local resolver, no DoH required. In fact some web appliances like the Chromecast already do exactly this without having to use any kind of technology like DoH.

The problem you are describing is nothing to do with DoH, it is simply a consequence of the fact that DNS is not meant to provide access control. It is not an endpoint security management solution.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @09:41AM (#25149965)
I do. I have always intercepted 53 and 853 and route them to my Unbound DNS recursive server. Unbound caches requests, blocks known malicious domains, then forwards the requests over a vpn mesh to other unbound servers that talk to the root name servers. The weakest link of course is that the root servers do not talk TLS yet. DNSSEC can be useful for zones that are signed.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @09:47AM (#25150032)
Now consider you are visiting a friend's house and you find out they have such a setup on their network... you wouldn't be bothered to learn that all the domain names you visit, even over TLS, are being processed by the homeowner and could be logged?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @10:03AM (#25150197)
At a friends house, my laptop will join my private VPN mesh and my DNS lookups will still use my servers. This does assume they allow outbound connectivity to more than 80/443. I have found places that do not allow this. I could run tinc [1] on 443, but if UDP is blocked, the VPN will be slower.

That said, in fairness, not everyone sets up their own VPN mesh. Some people use commercial VPN providers. So in that case, it would assume my friend does not block access to that VPN provider.

[1] - http://tinc-vpn.org/

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @10:06AM (#25150235)
So, don't you think it would be more hospitable to just allow privacy technologies to be used on your network without forcing your guests to buy a VPN?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @10:10AM (#25150273)
Maybe so, but that is my choice. It is my home and my network. I can choose to protect my guests and they can choose to get a VPN. I would not subject them to my ISP's DNS, nor would I subject them to centralized DNS. Both are equally dangerous in my view. I would always disclose to my guests what they are using, how to use it and what choices they have. The people implementing DoH in the browser are taking that choice away, so now my only option is to play the never ending game of whack-a-mole with the centralized DoH servers.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @10:13AM (#25150301)
I do not think that it is fair to say that changing a default is equivalent to taking a choice away. They are only moving the choice from the network operator's hands directly into the user's hands, which is where I think it belongs (and where it really was in the first place). In the hands of the user whose device is actually establishing the connection.

You could block your guest's VPN connections, but you don't do that.. why not? Aren't they subverting your protection by using VPNs?

> nor would I subject them to centralized DNS. Both are equally dangerous in my view.

I would argue that large providers like Cloudflare are the only ones who realistically have the resources to stand up to threats like government intervention (where it is possible). They have strong legal and financial incentives to maintain their privacy guarantees which smaller providers don't have.

Also you have the advantage of your data "hiding in plain sight" due to the high volume they deal with.

I certainly wish there were more providers available than just Cloudflare and Google though.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @10:25AM (#25150423)
I do not think that it is fair to say that changing a default is equivalent to taking a choice away

For my technical friends, that would be true. They can adjust their settings and be on their way. I won't block their choices aside from intercepting requests to the ISP DNS.

Most of my friends are not technical, have no idea how to tweak the settings in their browser and would not know they even need to care. So I think it is fair to say that a choice is being taken away. It isn't like browsers are going to prompt people and explain what is occurring. The masses will experience centralized DNS without any idea this is happening. I think we will fundamentally disagree here.

You could block your guest's VPN connections, but you don't do that.. why not?

My guests can choose to use a VPN if they wish, I would not take that choice away. That is an intentional move to protect their traffic. DoH is not an intentional choice. They did not choose this. If a technical friend chooses a DoH server, their laptop won't work and I will explain, if I had not already, that DoH servers are blocked. Anyone that knows me, would expect this behavior. Anyone that is my friend would accept this. We probably just have very different circles of friends.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @10:29AM (#25150464)
I actually would support the idea of a prompt. In lieu of that, I prefer default-on to default-off, but I think I could agree that a prompt would be the best option.

Although if the only concern is that Firefox defaults to a poor choice (in your opinion), why not just block Firefox's default specifically? Why other public DoH servers too? Or why not just block the Firefox DoH canary domain which prevents it from defaulting to DoH unless the user specifically turns it on?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @11:36AM (#25151186)
I would just block the DoH used by Firefox, but at the moment, nobody has really proven out the DoH/DoT solutions in the OS and browsers. Until such a time that users are made aware and given choices from both their OS and browsers, I choose to treat all of them as hostile in my own home network. I see the users as frogs in luke-warm water. Both ISP's and centralized DNS providers can choose to boil them once critical mass is reached. Some ISP's have already boiled some frogs, but this is limited to specific ISP's and specific countries. The DoH providers are in a position to boil ALL the frogs globally once everyone has forgotten about DoH and/or critical mass is reached.

At work, we already control these settings in the browser and can easily control any future settings in the OS so it is not an issue there.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Datenstrom on Thursday November 19, 2020 @08:41AM (#25149309)
Is there a comprehensive list to block somewhere? I would like to do the same.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @09:44AM (#25149989)
Comprehensive, no. There are growing numbers of git repos of DoH names. [1] [2]

[1] - https://github.com/bambenek/block-doh

[2] - https://github.com/Sekhan/TheGreatWall

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by CarelessExpert on Thursday November 19, 2020 @12:25PM (#25151826)
Replying to my own post:

I hadn't looked into this recently but it looks like you can configure a pihole to use DoH for outbound requests:

https://docs.pi-hole.net/guides/dns-over-https/

So personally I plan to a) enable that so my outbound requests are encrypted, and then b) install a DNS blocklist so the hosts on my network will fall back to regular DNS and use the pihole.

Best of both worlds!

[dead]
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by kodablah on Thursday November 19, 2020 @05:59PM (#25155375)
> Or, you know, turn off DoH if you use a pihole. There is no problem to solve here [...]

On every app that will be baking in their own DNS resolution. Here's to hoping they all allow it to be changed via configuration. I suspect a favorite feature of pi-hole, blocking DNS from opaque devices like phones and TVs, will also cease to work when they use DoH too.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tremon on Thursday November 19, 2020 @11:26AM (#25151069)
If you run a custom DNS, don't have DoH running

How do I enforce that? How can I ensure that no javascript payload or "smart" device on my network or app on my phone is connecting to a DoH server, when they're on my home network?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by EvanAnderson on Thursday November 19, 2020 @11:49AM (#25151360)
How do I enforce that?

You don't. When the device manufacturers start being really evil and using certificate pinning for their DoH servers you simply don't buy those devices.

When the only devices available in the market for a given function end up being "evil" you either implement the functionality yourself or you just live without.

It's that or legislation (which will just become an arms race of manufacturers trying to work around the legislation).

I do without. No "smart" devices for me or my family. It's working so far. I about the eventual future when no major appliances, vehicles, etc, will be available without "smart" features implemented in an owner-hostile manner.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by danShumway on Thursday November 19, 2020 @04:03PM (#25154333)
How do you currently deal with pinned certificates on those devices? What makes you think that they're currently respecting your network? A Google Chromecast will already ignore all of your network-wide DNS settings.

This removes a couple of avenues of attack you might have used to rein in some of those devices (but probably weren't doing), but it's just a symptom of the fact that using DNS for device control was always a really hacky, kind of awful solution to the problem of having rogue devices on the network.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by TheRealPomax on Thursday November 19, 2020 @11:35AM (#25151178)
Did you suddenly forget how to care about privacy and security before you buy your devices? No. Vote with your dollars, don't buy things that don't do what you need them to. If some IoT device only uses DoH, you already know that before you buy it: don't buy it. If an app only works with DoH, you already discovered that because you're someone who reads and comments on HN, and so you're guaranteed to check some app reviews before you buy into to: don't use it. No one's forcing you into this beyond your control.

Plus, right now we're talking about a browser adding DoH, and not some shit Google or Apple browser that makes the decision for you and it's final, but a fully configurable, user controlled, poweruser enabling browser that lets you modify its core behaviour without even having to recompile it yourself. You just open a tab and flip a boolean.

There is no problem.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Datenstrom on Thursday November 19, 2020 @08:40AM (#25149302)
Yes, had this problem when I was setting up my pihole and took me a bit to figure out why it wasn't working with firefox. Imagine the sysadmin nightmare if you had to configure 100 different applications on every one of your systems to use the correct server...

This is so obviously bad I don't understand.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @09:08AM (#25149568)
I am inclined to think most users use client-side content blocking, and not DNS-based content blocking, which has always been trivially bypassable long before DoH was around.

So given that DoH has real and practical security and privacy benefits, and non-DNS based content blocking solutions are already available, are more common, and work more effectively, I don't see how it is such a nightmare to adopt those more secure defaults for everyone.

Furthermore I don't think anyone is suggesting "100 different applications" will each have their own resolvers embedded. It makes sense for browsers to be a special case since they are particularly in need of the additional privacy affordances that DoH can provide, and operating system vendors have been slow to implement it.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by CarelessExpert on Thursday November 19, 2020 @12:32PM (#25151918)
> I am inclined to think most users use client-side content blocking, and not DNS-based content blocking,

I think you're missing the point, here.

A lot of enterprises run their own delegating DNS server for a variety of reasons that have nothing to do with ad blocking.

DoH breaks that en masse.

Firefox has always struggled to gain adoption in corporate settings, and this looks like a nail in the coffin .

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @12:48PM (#25152106)
If you control the workstation, you could just set your DNS server by a policy. See: https://github.com/mozilla/policy-templates/blob/master/READ...

Of course that could be easily bypassed, but such a restriction could be easily bypassed by determined employees regardless of whether Firefox natively supports DoH or not.

Local intranet sites will still continue to work without any changes because by default it will fall back to the native resolver if DoH can't resolve the domain. So there should be no breakage by default besides for content blocking use cases.