News for hackers. Stuff that matters.
Re:Mozilla’s DNS over HTTPs by lovelearning on Tuesday February 25, 2020 @08:28AM (#22412992)
As a resident of a country whose government and ISPs heavily and habitually censor the Internet for political reasons, I for one truly appreciate Firefox's DoH. They should also enable 'network.security.esni.enabled' by default because the censors here have upgraded from DNS to SNI-based blocking. I get it that better solutions are possible, but got to teach people to first walk before teaching them to run. AFAIK, Chrome still doesn't support this kind of simple user-friendly privacy options for the average non-technical user.
Re:Mozilla’s DNS over HTTPs by vetinari on Tuesday February 25, 2020 @09:49AM (#22413599)
Chrome uses opportunistic DoT - it uses your system configured resolver, and if it supports DoT, it will use DoT, if not, it will fall back to 53/udp.

I like Chrome's approach much better; it doesn't force you to statically configure DNS server - it is a PITA, especially when roamining and you want to resolve hostnames available only in local networks.

Re:Mozilla’s DNS over HTTPs by ignoramous on Tuesday February 25, 2020 @11:13AM (#22414335)
> ...it is a PITA, especially when roamining and you want to resolve hostnames available only in local networks.

Not really.

If you're not blackholing traffic at the dns-layer via DoH, set Firefox's trr.mode to 2. Per documentation, at the cost of additional latency incurred, system-level / network-level resolvers should pick up the slack, provided they've been set as appropriate via DHCP or otherwise.

Ref: https://wiki.mozilla.org/Trusted_Recursive_Resolver#network....

Re:Mozilla’s DNS over HTTPs by mooman219 on Tuesday February 25, 2020 @01:31PM (#22415777)
If I sit any family member down in front of this comment, their eyes would glaze over. Not only is what you mention a PITA, it's impossible for most people.
Re:Mozilla’s DNS over HTTPs by irrational on Tuesday February 25, 2020 @01:57PM (#22416035)
I'm a programmer and I have no idea what OPs comment means. I keep meaning to learn about networking stuff, but there is always so many other things to learn and since I don't work with devops or networking stuff it hasn't really been a priority.
Re:Mozilla’s DNS over HTTPs by vetinari on Tuesday February 25, 2020 @02:51PM (#22416704)
Don't take it in some wrong way, but most programmers have no idea about networking; for them, IP addresses are just some numbers.

Yes, are explaining to our colleagues what IP address, subnet, route, or interface are.

Re:Mozilla’s DNS over HTTPs by swiley on Tuesday February 25, 2020 @03:14PM (#22416952)
Most of that comment is Mozilla BS and not networking stuff.

--Someone with a decent understanding of networking

Re:Mozilla’s DNS over HTTPs by cmroanirgo on Wednesday February 26, 2020 @04:16AM (#22421569)
Agreed. Just looked up about trr nonsense and found this 'setting':

> network.trr.excluded-domains

> Comma separated list of domain names to be resolved using the native resolver instead of TRR. Users may add domains they wish to exclude from TRR to this pref. This pref can be used to make /etc/hosts works with DNS over HTTPS in Firefox. Setting network.trr.excluded-domains to include host names from /etc/hosts will make them fall back to platform DNS, which will use the rules in /etc/hosts.

So, rather than using the hosts file, network admins & devs now have to specify 'special sauce' in FF too?

I'm not buying DoH for this reason alone, because it throws out a lot of legacy (albeit always regarded as hokey) for no good reason. If FFox is doing it's own DNS stuff is MUST (at least) do hosts file resolution, imho. Otherwise it leaks names, which kinda defeats one of the main the purposes of DoH: which is to maintain critical privacy in places where it's being abused.

Re:Mozilla’s DNS over HTTPs by teknopaul on Wednesday February 26, 2020 @04:31PM (#22427572)
This is so true. FireFox is terrible at spaffing private info at search engines.

Breaking DNS is madness IMHO. Its just more sites that dont work on FF.

Broken is not more secure, its just broken.

Re:Mozilla’s DNS over HTTPs by chrisweekly on Wednesday February 26, 2020 @07:43AM (#22422412)
You're not alone. That said, I highly recommend reading and referencing "High Performance Browser Networking" by Ilya Grigorik^1, it's accessible, detailed, accurate, and useful in the extreme.

1 https://hpbn.co/

Re:Mozilla’s DNS over HTTPs by lagadu on Wednesday February 26, 2020 @04:15AM (#22421563)
Fire up a Linux VM and check out the named howto. Not only will you learn a lot about dns, you'll have a working server by the end of it.
Re:Mozilla’s DNS over HTTPs by ignoramous on Tuesday February 25, 2020 @01:33PM (#22415798)
AFAIK, when one turns on DoH, Firefox's trr.mode defaults to 2. And that's the default behaviour most would want except for the ones using pi-hole et al.
Re:Mozilla’s DNS over HTTPs by bscphil on Tuesday February 25, 2020 @07:02PM (#22418901)
In general, yes, that solves the problem for local domains. But anyone who needs to do anything at all complicated is going to have trouble with this, not just Pi-Hole users.

For example, take your average John Doe who uses Firefox. Not particularly technically competent. A new version of Firefox comes out, and all the Archive.is domains break. Who does he blame for that, and how does he solve the problem?

What's happening behind the scenes is that Firefox switched his DNS address on him without warning. And Cloudflare (the DNS endpoint used by Firefox by default) returns incorrect IP addresses for the Archive.is domains (because the admin of these domains returns fake addresses to Cloudflare from their authoritative DNS server).

Most people are using DNS provided by their ISP, so they haven't seen this problem before. I know about the problem, and my resolver (Unbound) is set to use Cloudflare over TLS for most requests, but sends Archive.is domains to Google's DNS instead. This solves the problem for me. Firefox switching to Cloudflare by default not only breaks sites like this for the average user, it even breaks my workaround that fixes the problem.

(I can't currently reproduce the problem, so maybe Archive.is caved and started sending working IP addresses. But it's the sort of problem that can happen when you start messing around with DNS. Your users will blame you if a site doesn't load in your browser, but works in other ones.)

Re:Mozilla’s DNS over HTTPs by mrpopo on Tuesday February 25, 2020 @08:20PM (#22419409)
> the admin of these domains returns fake addresses to Cloudflare from their authoritative DNS server

Why?

Re:Mozilla’s DNS over HTTPs by bscphil on Tuesday February 25, 2020 @08:55PM (#22419586)
They have a beef with Cloudflare over Cloudflare removing EDNS Client Subnet for privacy reasons.
Re:Mozilla’s DNS over HTTPs by waterfowl on Tuesday February 25, 2020 @08:54PM (#22419583)
some prior discussion for context -- https://news.ycombinator.com/item?id=19828317
Re:Mozilla’s DNS over HTTPs by shawnz on Wednesday February 26, 2020 @12:34PM (#22425181)
And if it happened to be that Archive.is actually had a beef with John Doe's ISP, who's to blame for that default getting picked?
Re:Mozilla’s DNS over HTTPs by bscphil on Wednesday February 26, 2020 @07:51PM (#22429258)
Not Mozilla.
Re:Mozilla’s DNS over HTTPs by shawnz on Wednesday February 26, 2020 @09:30PM (#22429814)
So in that situation, would Mozilla then be the good guys by adopting DoH and fixing the user's broken network level DNS?

So basically whether Mozilla is doing the right thing or not here is entirely dependent on who the archive.is operators decide to target?

What about all the services that will be fixed for users after Mozilla makes this change, due to poorly operated DNS from the provider?

Re:Mozilla’s DNS over HTTPs by bscphil on Thursday February 27, 2020 @06:01PM (#22438913)
Nah, the lesson is that users are going to blame you when you make low level arbitrary changes that break things when they're not capable of knowing about and fixing the technical problems that arise. The fact that a change might accidentally fix problems sometimes isn't a counter example to that general principle.
Re:Mozilla’s DNS over HTTPs by shawnz on Thursday February 27, 2020 @07:10PM (#22439371)
Even when the possibility of things getting fixed is substantially more likely than the possibility of things getting broken?

By default Firefox will fall back to the network resolver if DoH can't get the results, so the only way that a situation like this could happen is if someone purposely sabotages the DoH results like with archive.is.

Furthermore, what you are saying could basically be used to rationalize putting any kind of potentially breaking change behind an off-by-default configurable. Do you think the web would be the sophisticated application platform it is today if browser vendors actually had that philosophy? Would that actually be better for John Doe, to make them have to learn about the technical aspects of every new web technology before they are able to take advantage of them?

Re:Mozilla’s DNS over HTTPs by barsonme on Wednesday February 26, 2020 @02:17AM (#22421038)
> the admin of these domains returns fake addresses to Cloudflare from their authoritative DNS server

Well, this explains why Archive.is never works...

Re:Mozilla’s DNS over HTTPs by vetinari on Tuesday February 25, 2020 @02:50PM (#22416686)
Not sure about that; it will still send query to the open Internet first and only when it fails, it will query local resolver.

You have leaking internal hostnames there.

To be fair, it is difficult to make all parties satisfied there. I think that a bit more honesty during discussion would help.

Re:Mozilla’s DNS over HTTPs by astrobe_ on Tuesday February 25, 2020 @05:27PM (#22418183)
That's a bit unfair, because this comment was obviously not addressed to the mere mortal. For you family member, a "how to" with a lot of screenshots and red arrows is probably more appropriate.
Re:Mozilla’s DNS over HTTPs by dmix on Tuesday February 25, 2020 @12:07PM (#22414879)
Considering the amount of people using library or Starbucks internet that needs you to use the local DNS (at least once you initially connect), maybe #2 should be the default? Or is there some risk in doing so?
Re:Mozilla’s DNS over HTTPs by dylanh on Wednesday February 26, 2020 @08:00AM (#22422483)
If your OS doesn’t already detect the captive portal, Firefox will.
Re:Mozilla’s DNS over HTTPs by dmix on Wednesday February 26, 2020 @11:31AM (#22424472)
Perfect
Re:Mozilla’s DNS over HTTPs by Polylactic_acid on Tuesday February 25, 2020 @09:24PM (#22419704)
Firefox has no issues with local domains and DoH. It makes a DoH request first and when that returns nothing it tries regular DNS.
Re:Mozilla’s DNS over HTTPs by teknopaul on Wednesday February 26, 2020 @04:49PM (#22427732)
That is an issue.

Apart from the wait.

Spaff hostnames to cloudflare, fail, then try harder.

Users expect

hosts: files,dns

Admins expect dns to work.

FireFox should not be fscking with network config.

If they do, they should try not to break users first.

Firefox is borken. Security is not improved. My DNS requests never leave the LAN.

Re:Mozilla’s DNS over HTTPs by Polylactic_acid on Wednesday February 26, 2020 @05:08PM (#22427907)
Half of your comment doesn't make any sense but for the rest of it, its just incorrect. The change in firefox hasn't broken anything, security is certainly improved in combination with other efforts like encrypted SNI. And yes, your dns requests always leave your lan at least once. You can run your own DNS server locally but that dns server has to ask other servers for the data since it can't store a local copy of the entire dns system. A local dns server is just a cache but with a few users its likely not doing any more than your browser cache.
Re:Mozilla’s DNS over HTTPs by teknopaul on Friday February 28, 2020 @06:18PM (#22447323)
DoH breaks anything that is going on in your BIND or NSD server. It bypasses them, it has broken that. If it does DNS first, then if that fails does /etc/hosts, its broken that too.

If I, or my company, or ISP has anything special in hosts or DNS, e.g. load balancing, name mapping, breaking facebook.com, things like that get bypassed.

DoH over HTTPS is slower than a lookup to /etc/hosts, and probably slower than a lookup to a locally cached DNS resolver.

Security is not improved by FireFox bypassing my network admins DNS rules.

Most DNS queries do not go over the Internet, unless you have DoH or have set special DNS servers. My ISP provides IP access to the Internet and DNS, like almost all ISPs. It not to do with local caching (which does add security), if I query foo.com that query goes to my ISP, not via the Internet, my ISP knows I asked for foo.com and then then the routes my IP packets there.

My ISP has to lookup DNS on the Internet to resolve them if it is not in caches but that lookup is not associated to me.

When I connect to a corporate network all my DNS goes over VPN if any information is required from the Internet again that is not associated to me.

Cloudflare might be running a more secure DNS resolver at the other end than my ISP, but it might not, its rules have to apply to the whole world so they cannot be tuned for me and my security preferences.

After DoH, all DNS goes over the Internet, even quires that eventually are resolved locally. Cloudflare now know I'm going to foo.com and so does my ISP, or VPN provider, I don't see how security has improved. Its just sending information to a commercial partner of Mozilla's in addition to my ISP. Some informationits getting that before my ISP did not get.

Plus HTTPS is not infallible.

DoH is more secure than DNS in plain text over the Internet, but that is very rarely the case.

DNS is also not a significant risk to browser users. I have never had a DNS response faked, to any HTTPS site it would not work, so why bother.

There isn't much risk, its not more secure, and it breaks stuff.

Re:Mozilla’s DNS over HTTPs by all_blue_chucks on Tuesday February 25, 2020 @09:53PM (#22419847)
Opportunistic security that can be disabled by attackers is not really security.
Re:Mozilla’s DNS over HTTPs by bepvte on Tuesday February 25, 2020 @09:02AM (#22413220)
I've noticed some problems with eSNI so far unfortunately. Some domains like discordapp.com have some access points with eSNI enabled and some without, so when clients access the ones without eSNI, they believe that they are under attack. I cannot wait for it to be finished and implemented though, it would be a huge benefit for the privacy of millions.
Re:Mozilla’s DNS over HTTPs by judge2020 on Tuesday February 25, 2020 @11:15AM (#22414352)
Currently only Cloudflare implements it but that's due to eSNI still being a draft.
Re:Mozilla’s DNS over HTTPs by pkulak on Tuesday February 25, 2020 @04:58PM (#22417923)
Wow, I had no idea encrypted SNI was a thing. That's very good news, because without it, DNS over TLS is pretty useless.
Re:Mozilla’s DNS over HTTPs by dheera on Tuesday February 25, 2020 @01:42PM (#22415893)
I wonder what the implications will be for TCP-over-DNS, which besides bypassing firewalls, can also provide anonymity in a different way.
Re:Mozilla’s DNS over HTTPs by belorn on Wednesday February 26, 2020 @04:28AM (#22421609)
TCP-over-DNS, together with the draft RFC for encrypted resolver to authoritative communication, altolows for more end-to-end style encryption. Clients could do their own secure resolving without relying on a central service.
Re:Mozilla’s DNS over HTTPs by coribuci on Wednesday February 26, 2020 @05:15PM (#22427977)
> Clients could do their own secure resolving without relying on a central service.

So in other words: privilege escalation.

Re:Mozilla’s DNS over HTTPs by abstractbarista on Tuesday February 25, 2020 @03:55PM (#22417334)
Notice that this page says they are only rolling it out in the US right now. I guess it'll be available elsewhere soon?
Re:Mozilla’s DNS over HTTPs by lovelearning on Tuesday February 25, 2020 @08:47PM (#22419543)
The features are available everywhere to everybody but are not enabled by default. The only difference for US users is that they're enabled by default.
Re:Mozilla’s DNS over HTTPs by newman314 on Friday February 28, 2020 @08:12PM (#22447923)
My problem with FF's implementation of ESNI is that they tied it to DoH the last time I checked.

These are separate features and should be decoupled accordingly.

https://bugzilla.mozilla.org/show_bug.cgi?id=1500289

Re:Mozilla’s DNS over HTTPs by stjohnswarts on Tuesday February 25, 2020 @10:59AM (#22414184)
I'm surprised that they wouldn't block the DNS providers in your country though?
Re:Mozilla’s DNS over HTTPs by lovelearning on Tuesday February 25, 2020 @11:24AM (#22414443)
Just 2-3 years ago, normal DNS to CloudFlare or Google DNS were enough to bypass my ISP's DNS redirection. Then those got disabled and while I switched to DoH, many others switched to paid VPNs. Now they've moved up to SNI blocking. They may catch on to the trend and block DoH IPs too if DoH becomes popular.
Re:Mozilla’s DNS over HTTPs by troquerre on Wednesday February 26, 2020 @12:51AM (#22420648)
Which country are you in/which countries do you see this happening in if you don’t mind me asking?
Re:Mozilla’s DNS over HTTPs by corford on Tuesday February 25, 2020 @05:36PM (#22418256)
Frankly, if your ISP is that aggressive, your best bet is a VPN. DoT and DoH will always offer imperfect privacy even with widespread ESNI.
Re:Mozilla’s DNS over HTTPs by bad_user on Wednesday February 26, 2020 @01:15AM (#22420753)
VPNs are routinely blocked in China and elsewhere.
Re:Mozilla’s DNS over HTTPs by eqtn on Tuesday February 25, 2020 @11:17PM (#22420232)
It's for bypassing banned sites
Re:Mozilla’s DNS over HTTPs by Polylactic_acid on Tuesday February 25, 2020 @09:25PM (#22419716)
Won't help if cloudflare sticks the resolver on the same IP range as regular cloudflare sites. Countries would have to choose to block most of the internet.
Re:Mozilla’s DNS over HTTPs by troquerre on Wednesday February 26, 2020 @12:51AM (#22420651)
I think China has demonstrated that countries are willing to do that.
Re:Mozilla’s DNS over HTTPs by Mirioron on Wednesday February 26, 2020 @01:06AM (#22420714)
China is a special case though. They're large enough to populate their own internet with things. Most countries aren't that large.
Re:Mozilla’s DNS over HTTPs by wwn_se on Wednesday February 26, 2020 @02:19AM (#22421049)
If the ISP (or Nation) is willing to block google or cloudflare IP-ranges then you will have to be a moving target. Using tor and similar. For normal shitty ISPs thats not an option
Re:Mozilla’s DNS over HTTPs by troquerre on Wednesday February 26, 2020 @03:22AM (#22421355)
Cloudflare and Google's dns resolvers got a lot of adoption bc they provided a way for normal people to get around censorship, but they're inherently censorable bc they're run by centralized companies. There are new initiatives aiming to create a distributed dns layer which are promising like https://handshake.org.
Re:Mozilla’s DNS over HTTPs by paraselene_ on Wednesday February 26, 2020 @08:13AM (#22422575)
And the distributed DNS layer will get censored soon enough if it gets traction. If you need proof, look at how TOR is doing in china.
Re:Mozilla’s DNS over HTTPs by troquerre on Friday February 28, 2020 @05:31AM (#22441854)
Security is not binary, it's a spectrum based on cost. It's the same for censorship-resistance. If Handshake increases the cost of internet censorship for every country in the world, then it will have succeeded even if it's still possible for countries like China to censor it.
Re:Mozilla’s DNS over HTTPs by bitxbitxbitcoin on Wednesday February 26, 2020 @10:02AM (#22423492)
China was a special case. There are smaller countries seeking to do the exact same thing now. Russia, for example.
Re:Mozilla’s DNS over HTTPs by 6510 on Wednesday February 26, 2020 @02:48PM (#22426573)
Building your own infrastructure seems viable even for small countries.
[dead]
Re:Mozilla’s DNS over HTTPs by comex on Wednesday February 26, 2020 @03:45AM (#22421446)
> Cloudflare does not block or filter content through the Cloudflare Resolver for Firefox. As part of its agreement with Mozilla, Cloudflare is providing only direct DNS resolution. If Cloudflare were to receive written requests from law enforcement and government agencies to block access to domains or content through the Cloudflare resolver for Firefox, Cloudflare would, in consultation with Mozilla, exhaust our legal remedies before complying with such a request. We also commit to documenting any government request to block access in our semi-annual transparency report, unless legally prohibited from doing so.

https://developers.cloudflare.com/1.1.1.1/commitment-to-priv...