News for hackers. Stuff that matters.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by saurik on Thursday November 19, 2020 @07:52AM (#25148956)
Operating systems can and should implement DoH, not every single individual application (which can then decide to use poorly chosen servers and will have to get updated in the future for whatever the next spec might be). That the people who make operating systems put so little effort into this stuff that application developers feel they need to take this into their own hands is a travesty :/. (This is particularly annoying given that it is already the case on every operating system that if you want to use DoH and choose your DNS server you can easily do that as long as the software in question lets you by using the system resolver; it makes absolutely no sense to embed and hardcode this functionality into every app.)

(For more detailed complaints and arguments on this topic, I wrote a long comment about it a year ago.)

https://news.ycombinator.com/item?id=21701808

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by simias on Thursday November 19, 2020 @07:58AM (#25148993)
I agree with you but I just... gave up. The web ate the net, the browser is the new OS. It's silly, it's lazy, it's inefficient, it's everything I dislike about software engineering but at this point it feels like preaching in the wind. I just try to ignore it, keep writing low level code and if someday I can't find a programming job outside of web technologies anymore I'll just become a shepherd in the mountains or something. I'll make cheese.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by dhimes on Thursday November 19, 2020 @08:32AM (#25149248)
It'll probably bounce back. We've been here before, when computing was centralized and everybody logged into the mainframe. Then it turned out that to have independent computers gave users a huge advantage and helped control costs.

Now, we're back to centralized systems- and I couldn't believe it when I watched the shift: What first caught my attention that this could get serious was gmail. Then g-office (whatever they called it then). Meanwhile a whole host of other services started.

I was developing a desktop app because I still wasn't convinced that people wouldn't prefer having their software and data "in hand," as it were.

I expect a new advantage will emerge and we'll want our machines and data back.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by geoelectric on Thursday November 19, 2020 @01:38PM (#25152765)
It's the tradeoff between local computing power and bandwidth/latency. It flips back and forth every couple decades based on what's expensive and what the last big advance was.

Even within the current era, render on server, render on client, ajax (the mix), etc.

We're seeing it now in gaming. Vidcards are the cost of a whole system now, games have become huge, and fast storage is still expensive; but bandwidth is increasing along with A/V streaming being perfected, so someone figured out how to minimize apparent control latency and now games are streaming. Once vidcards get cheap and SSD storage capacities catch up to 150GB games it'll flip back until the balance tips again.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Firehawke on Sunday November 22, 2020 @08:42PM (#25182808)
Not enough to make even moderately latency-sensitive gaming worthwhile, though. I don't see that getting better unless there's widespread building of data centers all over the place to keep the services right in your neighborhood.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by geoelectric on Monday November 30, 2020 @02:09PM (#25257574)
I’ve been pretty happy with PS Now, Shadow and GeForce Now. I show maybe an extra 50ms of latency max, more like 30ms avg.

I wouldn’t play really competitive shooters that way but it’s low enough to not bother me even in mouse/keyboard FPS (for the PC services). For controllers it’s completely negligible, like playing with a Bluetooth device or on a 2015 TV.

That said, I’m in Santa Clara County near one of the major Shadow datacenters, probably the others too, and I have gigabit. I am in the ideal situation you describe.

So is a lot of the world though. US is super rural for its economic weight but that’s not the norm. Most developed countries have much higher density and better networks. I think we’ll probably just end up dragging behind the curve until we mesh the flyover states better.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tetris11 on Thursday November 19, 2020 @08:47AM (#25149353)
"You have been locked out of the G-Suite because a username closely affiliated with your IP address was discovered on the downside of a controversial reddit thread."
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Jiocus on Thursday November 19, 2020 @09:21AM (#25149713)
"at Google, we will never provide a clearly stated reason for account termination. Please read our Community guidelines for further information."
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LunaSea on Thursday November 19, 2020 @04:40PM (#25154720)
Welcome to Google. I love you.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by saurik on Thursday November 19, 2020 @08:00AM (#25149011)
You made me feel a lot better, actually (I'm serious). <3 Maybe one day I will open the sandwich shop I sometimes threaten to leave software for, and I can buy your cheese. (I know that is a horrible business, but there was a great article I read 15 or so years ago about a developer quitting software to open a hot dog stand, and he seemed so happy about it.)
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by rsj_hn on Friday November 20, 2020 @12:43AM (#25157635)
Both of you have renewed my faith in humanity. It means a lot to run into a kindred spirit.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @08:47AM (#25149355)
> It's silly, it's lazy, it's inefficient, it's everything I dislike about software engineering but at this point it feels like preaching in the wind.

It may not be conceptually beautiful but it is one of the most practical and useful technologies we've ever created, like C compared to lisp. The Web is the new "Worse is Better"

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by basicneo on Thursday November 19, 2020 @08:17AM (#25149151)
I'm also a bit disheartened by the direction of the web.

Emacs has been a decent haven for me in my search for privacy, interopability, programmability: my user agent.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by im3w1l on Thursday November 19, 2020 @02:31PM (#25153402)
I think it's conways law but applied to society as a whole. The companies, non-profits we currently have - that's what has created this situation.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by riedel on Thursday November 19, 2020 @01:21PM (#25152535)
Wonder when they will ship a new version of AOL CDs to access the global CDN formerly known as the Internet.

Actually HTTP could directly handle DNS. Then you can decide between a cloudflare, google, akamai or amazon browser. Who needs more freedom if we can have security...

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by fiatjaf on Thursday November 19, 2020 @11:38AM (#25151222)
What do you think of a new standard for delivering instant web apps that is 1% of the complexity of browsers? Something, maybe a chat-like interface with buttons and input fields, that allows you to interact with a web server in a dynamic and useful way but it's at the same time very simple and fast.

Ideally then for all more involved software experiences native software would have to be shipped.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by romanoderoma on Thursday November 19, 2020 @01:57PM (#25153020)
Maybe you could try to send and email to Jeff Minter before giving up
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by 0df8dkdf on Thursday November 19, 2020 @12:19PM (#25151734)
Not to mention DNSEC is not available for every TLD. I urge operation system maker, Apple, MS, Linux to implement something like handshake.org

Stop with this stop political stuff in tech like root level zone server type of stuff.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by abfan1127 on Thursday November 19, 2020 @12:54PM (#25152168)
have you looked at embedded software applications? Its bare metal, limited space, fixed point math, detail oriented. All the good stuff!
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by hannob on Thursday November 19, 2020 @08:10AM (#25149097)
> Operating systems can and should implement DoH

I see a comment like this basically every time something about DoH comes up.

What I haven't seen: A plan how this should be implemented, a proposal to OS vendors and developers, ideally with patches.

This raises a few questions. How should the OS decide which server to use? It obviously can't be DHCP, because that's not a secure thing to begin with. How does this interact with things like captive portals if you have a disconnect between the DNS functionality and the gui application? Do you have good answers for these?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tremon on Thursday November 19, 2020 @11:23AM (#25151033)
It obviously can't be DHCP, because that's not a secure thing to begin with

Why not? DHCP is supposed to be authoritative for the network you're connected to. If you don't trust that network, you should probably also not be using its advertised gateway. Where does that leave you?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by StillBored on Thursday November 19, 2020 @11:30AM (#25151112)
"you should probably also not be using its advertised gateway"

Why not? Just make sure to use a VPN/etc to access services over the gateway.

I mean, this is the default case for everything going over the internet. Do you trust every router in the path?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by iso1631 on Thursday November 19, 2020 @12:52PM (#25152155)
Fine, then set your own DNS server in your network settings.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by kelnos on Thursday November 19, 2020 @09:07PM (#25156667)
How do you know the network you're connected to isn't intercepting DNS requests and returning whatever it wants?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by iso1631 on Friday November 20, 2020 @05:55AM (#25159237)
Set your OS to use your DOH server of choice.

Personally when my laptop is connected to a network on a high latency link to the internet, I'd rather it used the local caching server rather than one half a continent away. Clearly if I don't trust that network provided DNS server I'll tunnel everything out to a trusted network, or I could specify a DOH.

I have no practical issue with DOH if it were implemented at the OS level and had standards around how to distribute recommended settings (just like my dhcp server distributes a recommended gateway, recommended ntp server, recommended tftp boot server, etc).

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Friday November 20, 2020 @12:19AM (#25157519)
Use DNSSEC.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tptacek on Friday November 20, 2020 @03:37AM (#25158482)
DNSSEC doesn't do that at all. DNSSEC does no transaction encryption. It allows full recursive resolvers --- the kind virtually nobody runs on their own machines --- to validate signatures on the tiny minority of domains (virtually none of them among the most popular on the Internet) that have opted in to DNSSEC over the last 10 years. Note that even in the unusual corner case where you're looking up a name that's actually signed with a DNS recursor that actually verifies DNSSEC signatures, the network between you can still snoop on all your DNS requests, because DNSSEC is bad.

If you're worried that your network upstream is intercepting your DNS requests (and if you're in the US on a mainstream ISP, you should be), this is the problem DoH is designed to solve, and it does so quite effectively.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Friday November 20, 2020 @08:55AM (#25160448)
DoH does not solve the problem that the resolver can just feed you wrong data. So if you want integrity for your DNS records you need DNSSEC. DoH/DoT does not solve that.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tptacek on Friday November 20, 2020 @01:40PM (#25163442)
DoH deliberately doesn't touch that problem. In 25 years of work, DNSSEC hasn't put a dent in it --- look at the stats on which zones are signed (and note that most of those signatures are security theater, done automatically by registrars).

The fact is that there's nothing you can do to authenticate DNS records, and turning some silly "DNSSEC" feature on in your own stack won't do anything but make you feel better, because DNSSEC simply doesn't have meaningful adoption. However, enabling DoH does in fact immediately protect you from attacks that really do happen, like ISPs monetizing your DNS.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Friday November 20, 2020 @04:04PM (#25164920)
>DoH deliberately doesn't touch that problem.

Exactly. That's what I said.

The problem is that DoH is not the solution, as you just change trust from resolver A to resolver B. With no indication that B is better than A.

If you fear that your ISP is selling your data you need to change your ISP. The ISP always know what sites you are accessing, regardless of DNS. DNS might be easier than SNI or IP lookups but the danger is still the same. Right now it might actually help but once encrypted DNS gets enough traction those methods will also adapt. (Assuming that ISPs still do that practice)

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by tptacek on Friday November 20, 2020 @04:14PM (#25165039)
It's funny that you've managed simultaneously to argue that DNS monetization (which is ubiquitous) is both a reason to immediately change ISPs, and also not a big deal because ISPs can snoop on you anyways.

While I have strong normative beliefs here, I'm mostly just posting descriptively. DNSSEC isn't happening. Enabling DNSSEC in your local configuration won't meaningfully protect you, because you depend on the security teams of large companies to also participate in the system, and DNSSEC has been more or less rejected by the market. Meanwhile: there are specific problems that DoH does protect against, it's easy to roll out, and doesn't depend on the Stripe security team changing their mind about DNSSEC --- so DoH is on a path to become universal, even as DNSSEC whithers.

(I invite the curious to test my reporting out with the `host -t ds foo.com` command, for arbitrary values of "foo").

I know I sound like a sore winner about this, and I guess I sort of am, but it is a little alarming that there are still currents of sysadmin wisdom telling people to go out of their way to opt into DNSSEC, in the belief that it will somehow protect them from any kind of real attack. In reality: corrupted DNS records overwhelmingly come from phished registrar accounts, not the elaborate, geographically-specific DNS cache corruption attacks DNSSEC was envisaged to deal with. I think it's worth being plain with people about this stuff.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Friday November 20, 2020 @06:03PM (#25166166)
>It's funny that you've managed simultaneously to argue that DNS monetization (which is ubiquitous) is both a reason to immediately change ISPs, and also not a big deal because ISPs can snoop on you anyways.

Of course. If you know that your ISP is doing that, you change to one that is not doing it. It's not ubiquitous. Besides that, what makes you think that your DoH provider (if not your ISP) is also not selling that data?

You think that DoH/DoT is somewhat a replacement for DNSSEC but it's not. Both are independent. Doesn't matter how much domains have it.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by akerl_ on Friday November 20, 2020 @06:41PM (#25166498)
How do I know if my ISP is doing that? And which ISP do I change to? Where I live, there’s effectively a single available ISP unless I don’t mind dropping down to single digit mbps.

Seems more plausible to just run DoH for my DNS and then not worry about my ISP snooping on my DNS requests.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by iso1631 on Friday November 20, 2020 @10:07AM (#25161106)
DOH to your trusted resolver which you run yourself (which uses DNSSec upstream)

Shame that I have 20 applications on several different users on two dozen different machines to configure

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by johannes1234321 on Thursday November 19, 2020 @05:35PM (#25155181)
Then you need to know your VPN's endpoint's IP address and can take DNS info from your VPN's config.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Thursday November 19, 2020 @09:46AM (#25150015)
The answer is: DHCP. In an environment where a captive portal is active you can ensure that only one DHCP server is running in your segment with no rogue DHCP servers. So telling a client with DHCP that a captive portal is active, and with URL to show it, is sane. This would eliminate a lot of stupid probing done by clients. Same goes for announcing DoT/DoH servers that way.

The same applies for your "home" environment. Since you usually don't want to run multiple DHCP servers, this would also work there.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @09:54AM (#25150102)
And it isn't like anyone needs to modify DHCP standards to support this. Just use any of the "options" text to add DoH/DoT, the same way browsers are advised of PAC URL's today. Only the clients would need updates to know how to use this, and adding the capability to an OS should be fairly easy to implement.

  option wpad-url code 252 = text;
  option wpad-url "http://10.10.10.10/proxy.pac\n";
I'm sure there is a clean way to overload or augment this capability to extend it to DoH/DoT.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Thursday November 19, 2020 @09:57AM (#25150130)
I did something similar for a PoC at my university. It worked, no surprise there. All you need to do is have a another client script in Debian to configure your resolver.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by LinuxBender on Thursday November 19, 2020 @02:29PM (#25153381)
I should add that DoH developers should reach out to ISC for comment on DHCP, to get an idea what the cleanest method would be to implement DoH/DoT in DHCP that would work for 90%+ of DHCP implementations.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gsich on Thursday November 19, 2020 @06:33PM (#25155677)
https://datatracker.ietf.org/group/add/documents/

There is some work regarding this.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by StillBored on Thursday November 19, 2020 @11:25AM (#25151054)
Isn't this the trusted network dialog in windows/etc when you connect to a new network?

If you don't trust the network, then the OS should be tunneling to a trusted one. If you do trust it then it can go ahead and use the DHCP/etc provided name servers.

After all it can decide to enable/disable access to services (windows filesharing for example) based on this, there isn't any reason it can't decide to trust the local nameserver too.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by detaro on Thursday November 19, 2020 @08:31AM (#25149242)
The questions also apply to browser implementations, don't they?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by hannob on Thursday November 19, 2020 @09:20AM (#25149688)
Some do, some don't. For example the captive portal issue, browsers can try to connect without DoH to a captive portal test page and provide a special non-DoH login tab. You can't do that on the OS level. You could create some interaction between the browser and the OS, but that's nontrivial and needs a solution.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Spivak on Thursday November 19, 2020 @09:33AM (#25149855)
Sure you can! iOS, Android, and GNOME/NetworkManager just open up a webview to handle the portal.

I’m sure others do too I just can’t say for certain.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by zinekeller on Thursday November 19, 2020 @09:48AM (#25150040)
Windows: Network Connectivity Status Indicator (NCSI) will ping www.msftncsi.com on older versions (8.1 and lower) or www.msftconnecttest.com on newer versions (10), and then prompts to open the web browser. Since IE/Edge will be always there, it works.

macOS: same as iOS (a dedicated window pinging www.apple.com).

Firefox: Detects detectportal.firefox.com and asks the user if the want to access the captive portal.

Android: Detects connectivitycheck.android.com on Android 5 and connectivitycheck.gstatic.com on Android 6+. I don't know if it applies to all phones, but I'm sure (that except for phones on Android One or Nexus/Pixel) Samsung also does this for phones outside of China.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by detaro on Thursday November 19, 2020 @09:34AM (#25149870)
OSes do at least some captive portal detection and prompting already too, but true, that might need additional work, I'm not familiar enough with the details.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by iso1631 on Thursday November 19, 2020 @12:57PM (#25152216)
> What I haven't seen: A plan how this should be implemented, a proposal to OS vendors and developers, ideally with patches.

Windows has support

https://techcommunity.microsoft.com/t5/networking-blog/windo...

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by megous on Thursday November 19, 2020 @06:16PM (#25155520)
It's already implemented for years. Personally I'm using dnscrypt-proxy for system level DoH.

You can put the proxy anywhere on the network and set up DHCP to point the clients to this proxy.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by oefrha on Thursday November 19, 2020 @08:02AM (#25149024)
macOS 11 and iOS 14 already added support for DoT and DoH.

See https://github.com/paulmillr/encrypted-dns.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by nitrohorse on Thursday November 19, 2020 @12:06PM (#25151578)
Shameless plug: DoH configuration profiles for several more DNS providers can be found here: https://gitlab.com/nitrohorse/ios14-encrypted-dns-mobileconf...
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by gruez on Thursday November 19, 2020 @11:42AM (#25151270)
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by saurik on Thursday November 19, 2020 @08:05AM (#25149047)
As did Windows (I saw this as I read over the last six months of changelogs a few days ago)... so why exactly is this a thing Firefox is doing again? :/
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by shawnz on Thursday November 19, 2020 @08:58AM (#25149463)
It works in Firefox today, whereas Microsoft wasn't even talking about DoH before Mozilla started pushing it.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by mmwelt on Thursday November 19, 2020 @08:29AM (#25149230)
Right, it looks like it should be coming soon to Win10 2021H1:

https://www.bleepingcomputer.com/news/security/microsoft-add...

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by 1vuio0pswjnm7 on Thursday November 19, 2020 @02:09PM (#25153148)
To summarise, there is nothing inherently wrong with DoH (serving DNS RRs via HTTPS), but there is something inherently wrong with enabling applications to ignore the user's OS DNS settings by default and perform their own DNS resolution, whether via DoH or otherwise.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by ohazi on Thursday November 19, 2020 @11:22PM (#25157290)
We should assume that this ship has already sailed for user-hostile applications and devices, and start working on mitigations.

i.e. Smart TVs will do this to get around pi-hole style ad blocking.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by 1vuio0pswjnm7 on Friday November 20, 2020 @02:15AM (#25158017)
Will these user-hostile appllications and devices allow you to set the gateway? As long as you can use an OS of your choice on the gateway you should be able to control routing, including DNS.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by josephcsible on Thursday November 19, 2020 @09:01AM (#25149502)
> Operating systems can and should implement DoH, not every single individual application

I agree that it would be better for DoH to be done in the operating system than in applications, but the reality is that today, operating systems don't do this, and it's better to do DoH in applications than to not do it at all.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by vetinari on Thursday November 19, 2020 @04:44PM (#25154752)
DoT or DoH are supported in Android (9+), iOS (14+), Linux (systemd-resolved, stubby, other resolvers), macOS (11+) and coming to Windows in 2021. So what exactly having separate implementation in apps achieves? That is, except for the possibility of mismatched configuration between such applications and the OS, leading to hard to debug problems?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by josephcsible on Thursday November 19, 2020 @07:09PM (#25155974)
DoT is not DoH. Since it uses its own protocol and port, it's easy for networks that want to do censorship or surveillance to block it.

Of those platforms that do support DoH, how many of them have it on by default, rather than requiring the user to know it exists and turn it on?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by vetinari on Friday November 20, 2020 @07:01AM (#25159632)
No DoT is not DoH. They both are blockable; DoH servers must use either well-known IPs, or to be bootstrapped by the plain DNS. First one you can block as well, the second you can filter.

> Of those platforms that do support DoH, how many of them have it on by default, rather than requiring the user to know it exists and turn it on?

Being off by default is a feature. Those road warriors that do not trust their coffee shops can turn it on if they want it, but elsewhere it causes nothing but trouble.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by josephcsible on Friday November 20, 2020 @09:36AM (#25160775)
> DoH servers must use either well-known IPs, or to be bootstrapped by the plain DNS.

The easy solution is for the well-kmown IP to be in the same pool that a major CDN uses, so it can't be blocked without major collateral damage.

As for being off by default, that's absolutely not a feature. Basically nobody who's non-technical will ever turn this on, even though it will improve privacy for no downside for most people. What "trouble" does it cause anyway?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by vetinari on Friday November 20, 2020 @04:59PM (#25165553)
> The easy solution is for the well-kmown IP to be in the same pool that a major CDN uses, so it can't be blocked without major collateral damage.

I can imagine that there are players who are OK with that collateral damage. In the end it will end up exactly like when the cloud providers disabled TLS domain fronting.

> even though it will improve privacy for no downside for most people

It won't. The big DoH providers will have nice behavioral data, on computer level, i.e. NAT is no longer a problem, they can distinguish separate device due to TLS session.

Privacy-wise, it is net negative. Few big companies will be getting data they didn't have until now.

> What "trouble" does it cause anyway?

You don't know, so you will use scare quotes then?

It has problems with DNS zones that only some resolvers can resolve, and/or are under ACLs so only local clients can resolve them. Your local network knows about them, the global ones don't.

It has problems with split-horizon names. So now, instead of getting internal IP for a service, you will be getting external one, so your traffic will go to router and back.

It has privacy implications that you didn't even began to think about.

Most networks are not coffeeshop wifi, where such behavior would be OK.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by josephcsible on Saturday November 21, 2020 @07:57PM (#25173924)
> I can imagine that there are players who are OK with that collateral damage. In the end it will end up exactly like when the cloud providers disabled TLS domain fronting.

The problem with domain fronting was that it could be blocked by blocking the chosen "front" domain, which bad actors were often willing to do. In this new era of eSNI, they'd have to block all of CloudFlare, which would be a lot harder sell even for an entity like China.

> It won't. The big DoH providers will have nice behavioral data, on computer level, i.e. NAT is no longer a problem, they can distinguish separate device due to TLS session.

> Privacy-wise, it is net negative. Few big companies will be getting data they didn't have until now.

I trust CloudFlare more than my ISP with my privacy, and if you don't, then you can pick another DoH server that you do trust.

> It has problems with DNS zones that only some resolvers can resolve, and/or are under ACLs so only local clients can resolve them. Your local network knows about them, the global ones don't.

Firefox will fall back to the local resolver for domains that fail to resolve with DoH.

> It has problems with split-horizon names. So now, instead of getting internal IP for a service, you will be getting external one, so your traffic will go to router and back.

With managed clients, you'd push out configuration to exempt the internal names from DoH. And what's the use case for split-horizon DNS with unmanaged clients? I've never seen that.

> It has privacy implications that you didn't even began to think about.

Like what?

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by vetinari on Monday November 23, 2020 @05:46AM (#25185426)
> The problem with domain fronting was that it could be blocked by blocking the chosen "front" domain, which bad actors were often willing to do. In this new era of eSNI, they'd have to block all of CloudFlare, which would be a lot harder sell even for an entity like China.

Entity like China are willing to block entire subnets if the subnet owner doesn't coooperate and doesn't separate the traffic. That would make the subnet owner's customer nervous, thus them pushing for cooperation in the first place.

> I trust CloudFlare more than my ISP with my privacy, and if you don't, then you can pick another DoH server that you do trust.

The thing is, I don't want to pick one single DoH server. I want to use the resolver that knows the local network, i.e. exactly how DHCP works today. I would be fine if there was a way to announce DoH/DoT via DHCP[1] and all the systems and apps would respect it.

> Firefox will fall back to the local resolver for domains that fail to resolve with DoH.

Just wait until ignorant people will start screaming about "DNS leaks" -- just like they do today with VPNs.

> And what's the use case for split-horizon DNS with unmanaged clients? I've never seen that.

BYODs. There are organizations (both for and non-profit), that have external co-workers, working with their own devices, that are not managed by GPO or MDM.

>> It has privacy implications that you didn't even began to think about.

> Like what?

Centralized service, preconfigured by default, used by many people, capable of discerning browsing habits per device even behind NAT. What could possibly go wrong.

[1] Though it has really no sense in trusted networks; DHCP can announce classic 53/udp service, the resolver can use DoT/DoH for the upstream, and the client would be none the wiser. In fact, many networks do exactly this today.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by josephcsible on Monday November 23, 2020 @10:07AM (#25187449)
> Entity like China are willing to block entire subnets if the subnet owner doesn't coooperate and doesn't separate the traffic. That would make the subnet owner's customer nervous, thus them pushing for cooperation in the first place.

Once eSNI is widely deployed, in addition to CloudFlare, DoH could also be ran from anywhere in Azure, AWS, or GCP. At that point, China will have to choose between breaking all TLS, blocking almost all traffic to the US, or accepting DoH leaking.

> The thing is, I don't want to pick one single DoH server. I want to use the resolver that knows the local network, i.e. exactly how DHCP works today. I would be fine if there was a way to announce DoH/DoT via DHCP[1] and all the systems and apps would respect it.

But the network is the main adversary. It would just advertise a DoH server that does censorship or surveillance, and then we're back where we started.

> > Firefox will fall back to the local resolver for domains that fail to resolve with DoH.

> Just wait until ignorant people will start screaming about "DNS leaks" -- just like they do today with VPNs.

That feature is optional. It's easy to turn that off if you don't want it to happen. And even if that weren't the case, isn't most of your DNS requests being safe better than none of them being safe?

> BYODs. There are organizations (both for and non-profit), that have external co-workers, working with their own devices, that are not managed by GPO or MDM.

So just add one step to onboarding: after "here's the Wi-Fi password", it's "here's the subnet to add to the DoH exclusion list".

> Centralized service, preconfigured by default, used by many people, capable of discerning browsing habits per device even behind NAT. What could possibly go wrong.

A lot less that could go wrong with the current state of ISPs.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by detaro on Thursday November 19, 2020 @09:05AM (#25149540)
From your linked comment, I would disagree with "web browsers decided that they didn't like end users being able to have this control". They don't like the default that requires users to make an active change to the get "upgraded", without ever being prompted so, not that the user can control it, and believe that in that situation, giving it a push is justified. See e.g. Chrome's policy: it checks if the configured DNS server also has a known DoH option, and if yes uses that.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by danShumway on Thursday November 19, 2020 @03:54PM (#25154234)
Right, it's not about taking away user control, because users have the same exact level of control that they had before. Firefox/Chrome still offer all of the same customization options, and you can even turn off DoH entirely.

What it is about is that the defaults for pretty much all OSes are bad. Maybe if we lived in a world where DoH was shipping by default enabled in Linux/Mac/Windows and set to something private like Cloudflare, it would make sense not to even provide browser options at all.

But as it stands, the current solution (while a little unintuitive and hacky) give you the best of both worlds. If you're a normal user, you get secure defaults. If you're a power user, you can go into Firefox and point at your own DoH provider, or turn off DoH entirely if that's what you want. And if you're an admin deploying Firefox on a network, you can deploy it with a custom profile that sets its internal DoH/DNS settings to whatever you want.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by eikenberry on Thursday November 19, 2020 @05:18PM (#25155054)
> See e.g. Chrome's policy: it checks if the configured DNS server also has a known DoH option

Do you know of any references that describe how it determines if the DNS service offers a DoH option or not? I can't find anything more than vague descriptions.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by detaro on Thursday November 19, 2020 @05:24PM (#25155100)
They maintain a list. See https://docs.google.com/document/d/128i2YTV2C7T6Gr3I-81zlQ-_... for information about the inclusion process and criteria and for the list in source code form: https://source.chromium.org/chromium/chromium/src/+/master:n...
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by eikenberry on Friday November 20, 2020 @05:44PM (#25165973)
Thank you!
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Someone1234 on Thursday November 19, 2020 @09:48AM (#25150037)
Why not both?

You're essentially arguing that more flexibility is bad without real justification. Per application DNS/routing (split routing) is something most Operating Systems don't support today (or setting it up is incredibly complex).

Giving this kind of flexibility might open up a future where a competitor to ICANN-DNS could exist, and users could dogfood it via single browser/window/tab instead of having an all-or-nothing situation as per today.

But let's throw out incredible new capabilities that allow user flexibility/choice because it is different to how it was historically done.

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.

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by Santosh83 on Thursday November 19, 2020 @07:55AM (#25148979)
Is there no space between "operating system" and "applications"? How about a group of established hackers with expertise get together and create an open source, system-level, DoH service which can be made easy to install on the different mainstream OS (Windows installers/store/chocolatey, MacOS app store, Linux repositories, Google Play)? Is this asking for too much coordination among parties with disparate interests?
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by saurik on Thursday November 19, 2020 @07:58AM (#25148992)
(I am wondering if the parenthetical I added a minute after I left my original comment wasn't there when you left this reply, but I go into detail on this topic in the linked comment: it already is the case that on every operating system you can do this and in fact people already have... as an example, if you want to use Cloudflare DoH, install their app!)
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by octoberfranklin on Thursday November 19, 2020 @09:04AM (#25149531)
That already exists, it's called dnscrypt-proxy.
Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by zerolog on Thursday November 19, 2020 @11:48AM (#25151340)
Full Linux system DoH/DoT resolver:

https://firejaildns.wordpress.com/

and a survey of public DoH servers:

https://firejaildns.wordpress.com/2020/09/22/a-survey-of-pub...

Re:Mozilla DNS over HTTPS (DoH) and Trusted Recursive Resolv... by n0nc3 on Thursday November 19, 2020 @01:05PM (#25152304)
Is it possible to add root CA's for DoH only, so that I can intercept requests at the gateway and terminate the TLS connection there?

Can anyone link to the part of the source tree containing their DoH implementation? I would like to test whether it is possible to distinguish Firefox DoH from unbound.