News for hackers. Stuff that matters.
Re:Cloudflare 1.1.1.1 DNS resolving issues by sillysaurusx on Wednesday October 04, 2023 @08:16AM (#37764047)
Note that if you use 1.1.1.1, you apparently can't visit archive.is links. I'm not sure why, but around a dozen people on HN have confirmed this. (At least as of a couple months ago.)

I think the world could use more alternatives to 8.8.8.8. Hopefully 1.1.1.1 will become more reliable as the years tick by.

(Do you use something besides 8.8.8.8 or 1.1.1.1? If so, post it here! Collecting reliable DNS servers might be a niche hobby, but it's a fun one. I was going to suggest 9.9.9.9 aka Quad9, but apparently it comes with strings attached. https://news.ycombinator.com/item?id=16728214)

Re:Cloudflare 1.1.1.1 DNS resolving issues by cmeacham98 on Wednesday October 04, 2023 @08:22AM (#37764087)
As neutrally as possible:

Cloudflare doesn't support the DNS Extension that sends part of clients' IPs to the upstream resolver (https://en.m.wikipedia.org/wiki/EDNS_Client_Subnet). Cloudflare believes this is better for privacy.

Archive.is doesn't like this (because it prevents DNS-based CDN routing), and thus has a hardcoded exception to intentionally return bogus results to Cloudflare's resolvers.

Re:Cloudflare 1.1.1.1 DNS resolving issues by tomrod on Wednesday October 04, 2023 @08:25AM (#37764108)
> thus has a hardcoded exception to intentionally return bogus results to Cloudflare's resolvers.

This is a bad practice.

Re:Cloudflare 1.1.1.1 DNS resolving issues by giancarlostoro on Wednesday October 04, 2023 @09:58AM (#37765272)
why in the world are they doing that I wonder.
Re:Cloudflare 1.1.1.1 DNS resolving issues by sccxy on Wednesday October 04, 2023 @10:24AM (#37765672)
Personal hate against big tech companies?
Re:Cloudflare 1.1.1.1 DNS resolving issues by wlonkly on Wednesday October 04, 2023 @11:05PM (#37774501)
Re:Cloudflare 1.1.1.1 DNS resolving issues by 542458 on Wednesday October 04, 2023 @09:12AM (#37764573)
I think it's also worth noting that Cloudflare's implementation is EDNS compliant. The EDNS extension for sending the client subnet is explicitly optional in the standard.
Re:Cloudflare 1.1.1.1 DNS resolving issues by eli on Wednesday October 04, 2023 @09:28AM (#37764818)
It prevents DNS-based CDN routing in the particular way Archive wants to do it.
Re:Cloudflare 1.1.1.1 DNS resolving issues by silotis on Wednesday October 04, 2023 @09:41AM (#37765041)
Cloudflare's lack of EDNS doesn't prevent DNS based routing. It can still be done based on the DNS request's source address. This will be the IP of the Cloudflare POP closest to the client.

Lack of EDNS only makes DNS based routing slightly worse if your CDN has a POP density similar-or-greater-than Cloudflare's.

Re:Cloudflare 1.1.1.1 DNS resolving issues by Scaevolus on Wednesday October 04, 2023 @10:36AM (#37765816)
Correct. Cloudflare's POP routing is quite extensive, and I'd be shocked if archive.is had more than a handful of backends it's routing to.

Even so, why would an extra few dozen ms matter at all? Archive.is appears to be spindle-limited, is a client with marginally higher RTT an issue? The admin is silly.

https://www.cloudflare.com/network/

Re:Cloudflare 1.1.1.1 DNS resolving issues by jrochkind1 on Wednesday October 04, 2023 @10:50AM (#37766004)
It seems so silly and mysterious that it makes me wonder if archive.today wants exact client IP addresses for some other unstated reason. (It's not clear how/if archive.today, a possibly illegal site, brings in revenue?).

The whole thing is very odd.

Re:Cloudflare 1.1.1.1 DNS resolving issues by depr on Wednesday October 04, 2023 @11:00AM (#37766164)
There is another reason but it is stated here: https://news.ycombinator.com/item?id=36971650 (routing people to the nearest server _outside_ their own country).
Re:Cloudflare 1.1.1.1 DNS resolving issues by arkadiyt on Wednesday October 04, 2023 @11:03AM (#37766218)
> it makes me wonder if archive.today wants exact client IP addresses for some other unstated reason

They still get the client ip from the request to the service itself (unless you're using a VPN, but if you're using a VPN then archive wouldn't get your ip from your DNS request either).

Re:Cloudflare 1.1.1.1 DNS resolving issues by mike_d on Wednesday October 04, 2023 @05:44PM (#37772237)
Do you happen to have a mapping of Cloudflare IP space to physical POPs?

To the best of my knowledge they do not publish this, which makes it quite a chore to track all their edge locations manually.

Re:Cloudflare 1.1.1.1 DNS resolving issues by Scaevolus on Monday October 09, 2023 @02:08AM (#37817384)
You could probably take their network map SVG and convert the circle coordinates from integer Mercator projection points to lat/lon pairs, and then map them to cities.
Re:Cloudflare 1.1.1.1 DNS resolving issues by andrewla on Wednesday October 04, 2023 @12:58PM (#37768103)
If I understand this correctly, that's hilarious -- Cloudflare is essentially saying that nobody can layer their own cloudflare-like offering on top of their DNS. Edge-routing is their bread and butter!

If you want to use the client's IP geolocation to resolve a CNAME to an edge server, this blocks you from doing so. You have to buy Cloudflare's products to get this benefit, and use their edge servers.

Re:Cloudflare 1.1.1.1 DNS resolving issues by NicoJuicy on Wednesday October 04, 2023 @01:08PM (#37768272)
No, they don't, please read this before making unresearched guesses ( note: I had the same reaction at first a couple of years ago).

They forward every info that is required for cdn's to function, that's why no other cdn's are complaining.

See the statement of the CEO:

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

Tldr:

> We publish the geolocation information of the IPs that we query from. That allows any network with less density than we have to properly return DNS-targeted results. For a relatively small operator like archive.is, there would be no loss in geo load balancing fidelity relying on the location of the Cloudflare PoP in lieu of EDNS IP subnets.

We are working with the small number of networks with a higher network/ISP density than Cloudflare (e.g., Netflix, Facebook, Google/YouTube) to come up with an EDNS IP Subnet alternative that gets them the information they need for geolocation targeting without risking user privacy and security.

Re:Cloudflare 1.1.1.1 DNS resolving issues by andrewla on Wednesday October 04, 2023 @02:47PM (#37769780)
Thanks for the clarification and link!

I do think that this has the effect of locking customers into Cloudflare's geoip data, which seems a little sketchy. The operator of archive.is claims that the data itself is bad[1] but I can't speak to his biases or motivations.

If the data is incomplete or bad, then you gain an advantage by using Cloudflare's services over rolling your own or using a competitor if a large number of customers are using their DNS, so I think the original point does stand. And if you are a competitor, your ability to compete with greater edge capacity or more targeted edge capacity is nonexistent.

[1] https://twitter.com/archiveis/status/1018691421182791680

Re:Cloudflare 1.1.1.1 DNS resolving issues by NicoJuicy on Wednesday October 04, 2023 @03:01PM (#37769989)
I would doubt the owner has a bigger network than cloudflare as their cdn.

If you're cdn is Azure, GCE, or AWS, than you're cdn is spread over the regions that their cloud offers. You still have no use-case to know more.

So, who? There isn't a provider atm in the world. So the issue at hand is currently not existent, as far as I'm aware.

Re:Cloudflare 1.1.1.1 DNS resolving issues by andrewla on Wednesday October 04, 2023 @03:51PM (#37770683)
Let's say you have more fine-grained capacity in a given metro than Cloudflare has in an attempt to provide additional value in that metro than Cloudflare can offer. You are blocked from doing so if endusers are using Cloudflare DNS.

I don't know if this is happening at the moment, but it's pretty clear that there is no real incentive to even attempt this given that you simply will not be able to offer any benefits because you don't have the data.

Re:Cloudflare 1.1.1.1 DNS resolving issues by NicoJuicy on Wednesday October 04, 2023 @09:36PM (#37773962)
Who would set a dns that is better in 1 metro in the world? Do you?

I'm getting ideological examples, but not one that occurs in the real world...

Re:Cloudflare 1.1.1.1 DNS resolving issues by pseg134 on Wednesday October 04, 2023 @05:39PM (#37772186)
Yeah, so cloudflare is making sure no one else can compete.
Re:Cloudflare 1.1.1.1 DNS resolving issues by NicoJuicy on Wednesday October 04, 2023 @09:34PM (#37773941)
Not really, read the last alinea.

I don't know what happened between that statement and now. Since they were working together with eg. Google to solve it.

Still. No example? So not an issue now? Since they give a geographical location to lookup that is nearby.

And it could be solved already. Since I don't know what happened between now and 4 years ago. But if it was an issue, I'm sure other CDN's would have complained by now.

Re:Cloudflare 1.1.1.1 DNS resolving issues by handsclean on Wednesday October 04, 2023 @01:07PM (#37768242)
There are two missing facts here that change the story quite a bit:

- In addition to not supporting EDNS, Cloudflare sends DNS requests from effectively random PoPs, so the recipient doesn’t know even the visitor’s nationality.

- The reason archive.is doesn’t like this is it makes them vulnerable to DoS attack.

Source and details: https://news.ycombinator.com/item?id=36971650

Re:Cloudflare 1.1.1.1 DNS resolving issues by iamdbtoo on Wednesday October 04, 2023 @08:20AM (#37764074)
The reason has been known for a while now.

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

Re:Cloudflare 1.1.1.1 DNS resolving issues by depr on Wednesday October 04, 2023 @11:02AM (#37766199)
Re:Cloudflare 1.1.1.1 DNS resolving issues by sillysaurusx on Wednesday October 04, 2023 @12:52PM (#37768011)
Thank you (both)!
Re:Cloudflare 1.1.1.1 DNS resolving issues by shasts on Wednesday October 04, 2023 @08:31AM (#37764168)
There is https://www.dns0.eu and https://nextdns.io.

I like the 300K requests per month free tier that nextdns.io has. Comes with plenty of filters.

Re:Cloudflare 1.1.1.1 DNS resolving issues by sambazi on Wednesday October 04, 2023 @08:46AM (#37764299)
like i ever wanted to care about the number of dns-requests originating from my systems.
Re:Cloudflare 1.1.1.1 DNS resolving issues by bharathyes on Wednesday October 04, 2023 @09:07AM (#37764512)
even beyond that the DNS works fine but the filtering would be turned off.
Re:Cloudflare 1.1.1.1 DNS resolving issues by sambazi on Thursday October 05, 2023 @02:44AM (#37775549)
thank you for this correction to my snarky comment
Re:Cloudflare 1.1.1.1 DNS resolving issues by ornornor on Wednesday October 04, 2023 @10:10AM (#37765448)
300k is a lot to be fair. And if that’s not enough it’s something like 20$ a year. It’s the only way I found to block ads (except in YouTube) on the iPhone.
Re:Cloudflare 1.1.1.1 DNS resolving issues by peddling-brink on Wednesday October 04, 2023 @08:58AM (#37764420)
I’m a big fan of NextDNS, ad filters, logs (or not), block list, allow list, multiple profiles, parental-ish controls. They have binaries to add support for DoH to my router. I literally couldn’t be happier with a DNS provider.
Re:Cloudflare 1.1.1.1 DNS resolving issues by basch on Wednesday October 04, 2023 @01:28PM (#37768612)
My one gripe is with the block / parental controls interface.

Let’s say you want to block Peacock, and there’s a bunch of urls you want to block, each is it’s own individual rule. If you accidentally delete one instead of disable it, it’s gone. If you can remember the url you accidentally deleted, now it’s placed at the top of the list, out of order. There appears to be no log of changes you make. It would be nice to be able to add custom parental controls with sets/bundles of urls.

Also you can’t toggle or package ad blocking rules, only delete and add. Sort of the same interface complaint as above. I have to go in and delete four ad blocking packages every time I want to watch Paramount+. Then go find them again when I am done.

Re:Cloudflare 1.1.1.1 DNS resolving issues by metabeard on Wednesday October 04, 2023 @02:11PM (#37769293)
Re:Cloudflare 1.1.1.1 DNS resolving issues by kmlx on Wednesday October 04, 2023 @10:19AM (#37765588)
the marketing copy on dns0 is lol considering the many ISP data retention schemes across EU states.

> The European public DNS that makes your Internet safer.

> A free, sovereign and GDPR-compliant recursive DNS resolver with a strong focus on security to protect the citizens and organizations of the European Union.

for example france: https://www.patrick-breyer.de/en/data-retention-france-illeg...

> In a decree made public today, French Prime Minister Élisabeth Borne has extended the temporary retention of communications data of all citizens in France for another year. The blanket retention obligation concerns identity data (surname, first name, date and place of birth, postal address(es), e-mail address(es), telephone number(s)) as well as payment information, connection data (IP addresses, port numbers, identification numbers of users and their devices, date, time and duration of each communication, data on supplementary services and their providers)

they basically collect everything.

Re:Cloudflare 1.1.1.1 DNS resolving issues by jiripospisil on Wednesday October 04, 2023 @08:18AM (#37764060)
> Note that if you use 1.1.1.1, you apparently can't visit archive.is links. I'm not sure why, but around a dozen people on HN have confirmed this. (At least as of a couple months ago.)

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

Re:Cloudflare 1.1.1.1 DNS resolving issues by re5i5tor on Wednesday October 04, 2023 @08:22AM (#37764084)
Switched off 1.1.1.1 for that reason a while back. Currently using OpenDNS which is now unfortunately owned by Cisco. Definitely a lack of actually open alternatives.
Re:Cloudflare 1.1.1.1 DNS resolving issues by dano on Wednesday October 04, 2023 @08:32AM (#37764169)
Running your own resolver that points directly to root servers is also an option. https://nlnetlabs.nl/projects/unbound/about/

It isn't too complicated to set up and provides faster responses than external DNS servers, especially after the cache gets built up a bit.

Re:Cloudflare 1.1.1.1 DNS resolving issues by mtsr on Wednesday October 04, 2023 @08:37AM (#37764203)
Indeed, this is my preferred solution too. Unfortunately this doesn’t protect one from snooping by network intermediaries, although that’s much less of an issue in the EU due to privacy regulations. At least in principle, but it’s hard to be sure.
Re:Cloudflare 1.1.1.1 DNS resolving issues by midasuni on Wednesday October 04, 2023 @08:52AM (#37764366)
Run your own resolver on a vpc (perhaps in a different country, pay with bitcoin, adjust on your level of concern) and WireGuard to it (perhaps WireGuard over a service like mullvad)
Re:Cloudflare 1.1.1.1 DNS resolving issues by ComputerGuru on Wednesday October 04, 2023 @08:59AM (#37764424)
DNS latency sucks.
Re:Cloudflare 1.1.1.1 DNS resolving issues by xorcist on Wednesday October 04, 2023 @09:47AM (#37765118)
Not too complicated is an understatement. It's literally zero configuration unless you want to do something special.
Re:Cloudflare 1.1.1.1 DNS resolving issues by re5i5tor on Sunday October 08, 2023 @10:26AM (#37810742)
Thanks for this, really interesting.
Re:Cloudflare 1.1.1.1 DNS resolving issues by johnklos on Wednesday October 04, 2023 @08:28AM (#37764131)
Quad9 seems decent. They're certainly not as shitty as Cloudflare or Cisco.
Re:Cloudflare 1.1.1.1 DNS resolving issues by yakubin on Wednesday October 04, 2023 @08:43AM (#37764265)
I used to use OpenDNS, but then out of nowhere they decided to enable parental control by default[1] and without an account I don’t think I could disable it.

[1]: Maybe only in EU?

Re:Cloudflare 1.1.1.1 DNS resolving issues by xist on Wednesday October 04, 2023 @10:41AM (#37765883)
208.67.222.222 / 208.67.220.220 do not have the functionality worldwide. The IPs ending in .123 do have parental control enabled worldwide
Re:Cloudflare 1.1.1.1 DNS resolving issues by agloe_dreams on Wednesday October 04, 2023 @09:33AM (#37764914)
A Pihole will do what you want with a ton of control added.
Re:Cloudflare 1.1.1.1 DNS resolving issues by re5i5tor on Sunday October 08, 2023 @10:21AM (#37810690)
I run Pihole. How does it solve upstream DNS provider troubles; it still needs / uses them? I'll admit there's a lot of Pihole config I have not explored.
Re:Cloudflare 1.1.1.1 DNS resolving issues by ElongatedMusket on Wednesday October 04, 2023 @09:57AM (#37765258)
It works again, so you can go back to 1.1.1.1
Re:Cloudflare 1.1.1.1 DNS resolving issues by re5i5tor on Friday October 13, 2023 @04:05PM (#37874970)
Thank you, switched back and so far archive.* seems to be working on 1.1.1.1
Re:Cloudflare 1.1.1.1 DNS resolving issues by metabeard on Wednesday October 04, 2023 @02:09PM (#37769253)
It's not open, but I'm happy with https://nextdns.io/
Re:Cloudflare 1.1.1.1 DNS resolving issues by mhitza on Wednesday October 04, 2023 @08:29AM (#37764140)
I use https://www.dns0.eu/ but that doesn't have a fancy IP address
Re:Cloudflare 1.1.1.1 DNS resolving issues by marban on Wednesday October 04, 2023 @08:33AM (#37764178)
Any benchmarks or experiences over CF from Europe?
Re:Cloudflare 1.1.1.1 DNS resolving issues by soap- on Wednesday October 04, 2023 @08:41AM (#37764245)
dns0 claims to have 12ms latency, cloudflare claims to have 13.6ms.
Re:Cloudflare 1.1.1.1 DNS resolving issues by lxgr on Wednesday October 04, 2023 @08:18AM (#37764061)
The operators of archive.* have a peculiar problem with eDNS, or rather Cloudflare’s lack of support thereof. Some details here:

https://community.cloudflare.com/t/archive-today-works-again...

Re:Cloudflare 1.1.1.1 DNS resolving issues by 542458 on Wednesday October 04, 2023 @09:15AM (#37764626)
Cloudflare supports EDNS, they just don't support the optional EDNS Client Subnet extension.
Re:Cloudflare 1.1.1.1 DNS resolving issues by lgeorget on Wednesday October 04, 2023 @08:24AM (#37764099)
I use OpenDNS. 208.67.222.222 doesn't roll off the tongue (or fingers) as easily as 1.1.1.1 but if you use it frequently enough, you'll remember it.
Re:Cloudflare 1.1.1.1 DNS resolving issues by NicoJuicy on Wednesday October 04, 2023 @08:32AM (#37764171)
Well. I used archive.is a lot. But Cloudflare has a point by not making a specific adjustment to fix the archive.is issue ( since it's on archive.is their end).

So, I don't go to archive.is anymore.

Re:Cloudflare 1.1.1.1 DNS resolving issues by Jnr on Wednesday October 04, 2023 @08:51AM (#37764350)
How come archive.is works for me?

I have set up Cloudflare DoH in my router, I block other popular DoH servers on my network and I also redirect any other DNS queries (UDP 53) to my router's DNS (which in turn uses Cloudflare).

And at least in my region (EU) I did not notice any issues with 1.1.1.1.

Re:Cloudflare 1.1.1.1 DNS resolving issues by yakubin on Wednesday October 04, 2023 @09:40AM (#37765019)
Maybe your computer ignores the DNS resolver address suggested by your router? You can check with dig what resolver you’re using, if you’re on a Unix-like system.
Re:Cloudflare 1.1.1.1 DNS resolving issues by Jnr on Wednesday October 04, 2023 @06:27PM (#37772656)
No, I mean - it uses Cloudflare and it works. I did try with dig. :) Also tried it from other countries in EU, works fine.
Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @08:52AM (#37764368)
Do you use something besides 8.8.8.8 or 1.1.1.1?

99% of the time I just talk directly to the root servers from my home network and pre-cache the most popular places I visit. Unbound also supports DoH but most distributions of Linux do not enable that compile time flag in their Unbound package build and I have long since stopped compiling things as most distributions finally started using the right security options in their builds. I also have DoT running at home which the cell phone figured out on it's own.

I keep DoT Unbound DNS running on several VPS providers that also talk directly to the root servers just in case. Useful for cell phones. My ISP is a tiny community ISP and would never filter any results and DNS privacy is just one tiny piece of browsing habits. Until encrypted SNI is fully adopted by all SSL libraries and applications they can still see where I browse unless I am using my own Tinc VPNs or SSH tunneling.

Re:Cloudflare 1.1.1.1 DNS resolving issues by hk1337 on Wednesday October 04, 2023 @09:06AM (#37764505)
Pihole is preconfigured to use multiple DNS. I used cloudflare and OpenDNS and exclude Google.
Re:Cloudflare 1.1.1.1 DNS resolving issues by giancarlostoro on Wednesday October 04, 2023 @10:00AM (#37765297)
> exclude Google.

Their DNS? or all of their services?

Re:Cloudflare 1.1.1.1 DNS resolving issues by hk1337 on Wednesday October 04, 2023 @10:05AM (#37765380)
The DNS in this case but as a general rule, I avoid Google services.
Re:Cloudflare 1.1.1.1 DNS resolving issues by lxgr on Wednesday October 04, 2023 @09:57AM (#37765263)
> I just talk directly to the root servers from my home network and pre-cache the most popular places I visit.

Out of curiosity: Why, if you generally trust your ISP? Do you get worse performance using their DNS servers?

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @10:04AM (#37765372)
I prefer to use my own server as I can optimize cache hit ratios for the things I request. This makes the internet perceptibly faster for me and others on my network. I can also pull statistics from my server whereas I would have to beg someone at the ISP for that data as a one-off request. This also gives me the option to block domain names used for dark patterns or outright malevolent behavior. I also have control over the upper and lower limits of cache and I can flush to cache if a website is still relying upon DNS failover vs BGP Anycast but I have not run into that for about a decade.

Speaking of stats, I can also see what IoT/Cell devices are requesting to keep an eye on their behavior and look for interesting patterns of DNS requests.

I have honestly never used the ISP DNS servers so I don't know what their performance is like. It's just muscle memory for me to set up my own home Linux router to be a DNS server. I highly doubt they could top the performance of Unbound and cron-jobs that request commonly used records on an hourly basis. I do know that my performance is better than talking to the DoH/DoT servers on the internet. The cached record response time is in microseconds vs 23ms for CF and non cached response time is generally between 50ms and 70ms vs 80ms to 160ms for CF not-cached.

Another nifty option in Unbound is to cache the "Infrastructure" records and to "Keep Probing" multiple nodes. This combines into a nice balance of speed and resilience especially if someones name server is having a moment but their status page is green.

    unbound-control dump_infra|wc -l
    1235
These numbers are thrown off a bit by my cron jobs that are requesting things that I am not visiting all the time and when the authoritative record is sub 3600 seconds. They are requested hourly. Some of the government domains in my cron job seem to be throwing off the curve, I will reach out to them.

    total.num.cachehits=20949
    total.num.cachemiss=8010
    total.num.prefetch=753
    total.recursion.time.median=0.0698958
Re:Cloudflare 1.1.1.1 DNS resolving issues by lxgr on Wednesday October 04, 2023 @10:32AM (#37765766)
Interesting, thank you!

Yeah, local caching is a good point if your operating system(s) doesn't already do it in the DNS client.

> This also gives me the option to block domain names used for dark patterns or outright malevolent behavior.

I wonder how long this will actually remain possible, given that with DoH it now seems entirely feasible for websites to provide their own application-level DNS resolver?

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @10:38AM (#37765844)
I wonder how long this will actually remain possible, given that with DoH it now seems entirely feasible for websites to provide their own application-level DNS resolver?

For me, forever. Applications can not bypass my DNS unless they are hard coding IP addresses in the application. Windows Update does have some hard coded IP addresses it can fall back on.

It is often said that DoH can't be blocked because in theory it can be hosted on any generic CDN IP pool but to my knowledge this has never been the case. It's quite the opposite, most DoH/DoT providers try to use vanity IP addresses. I null route them and NXDOMAIN the canary domain use-application-dns.net which is entirely optional but a nice gesture to applications to behave. Some vendor may decide they want to host their own DoH/DoT servers but I suspect I would learn about them. Perhaps some day a DoH provider may be so bold as to use a generic CDN pool and I will have to address that issue when it arises. I would likely just avoid buying/using that device/application.

Re:Cloudflare 1.1.1.1 DNS resolving issues by lxgr on Wednesday October 04, 2023 @10:51AM (#37766013)
> Applications can not bypass my DNS unless they are hard coding IP addresses in the application.

That's what I mean: What if websites and applications just start querying IP addresses for the hostnames they want to connect to over DoH (to api.someapp.com, so you can't distinguish it from a regular API call that you want to allow for the app to work), and then connect to the resolved IP directly?

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @11:10AM (#37766319)
The heavy-handed solution looks like this:

    local-zone: "api.someapp.com." always_nxdomain
Then I reach out to them and say something to the effect of, "Hey, nice application/device you have there! In order for anyone on my network to utilize this app/device the DNS would need to be put back into your DNS servers and removed from the API records." Of course they will laugh at me but that is fine given that 100% of the internet and internet connected devices are entirely optional for me. It is unlikely that a statistically significant number of people would use this heavy handed approach. Or perhaps I am OK with their API method and make use of their API that bypasses DNS. This probably depends on if this is malicious or not. i.e. serving ads or malware

Another heavy-handed option would be to force all traffic through a MITM proxy which I have done in the past. Any device that can't have my CA cert loaded would be a paperweight and thus returned to Amazon with less than 5 stars and a review that details the DNS implementation which most customers would not care about or understand but my fellow cranky network admins may find useful. If it's a website then I would just not use it. Some businesses take this approach. There are both commercial and open source solutions for this. Look for Squid SSL-Bump MITM proxy if one is curious. This requires bypasses for domains still using public key pinning which is an insignificant number of them.

There are other methods but they come with security implications such as decompiling applications, shimming something into it or pre-loading libraries to do the same thing but this usually requires rooting a device and potentially compromising security. I'm sure some of the mobile developers here have more elegant and secure methods.

I doubt any or many would do any of this of course, but you asked.

Re:Cloudflare 1.1.1.1 DNS resolving issues by kxrm on Wednesday October 04, 2023 @06:38PM (#37772742)
I reroute all DNS queries attempting to leave my network to my DNS server. It won't work in scenarios where there is DoH without user consent, however at that point I should reconsider purchasing such hostile devices.
Re:Cloudflare 1.1.1.1 DNS resolving issues by shagie on Wednesday October 04, 2023 @02:34PM (#37769604)
Tangentially related: My Chromecast Ultra would not start until I began answering 8.8.8.8 --- https://news.ycombinator.com/item?id=19170671 (2019; 509 comments)

The original post for that is https://mailarchive.ietf.org/arch/msg/dnsop/WCVv57IizUSjNb2R... from Paul Vixie

Also:

An Internet Born In a Threat-Free Environment - https://www.recordedfuture.com/podcast-episode-201 (2021)

Paul Vixie and Peter Lowe on Why DoH is Politically Motivated - https://www.dnsfilter.com/blog/paul-vixie-and-peter-lowe-on-... (also from 2021)

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @03:37PM (#37770478)
That is a good write-up on Paul's comments. I think he has an account here on HN. I recall discussing similar concerns here on HN when the protocol was first being discussed but I think most of my concerns fell on deaf ears. People were enamored by the idea of DoH but I see it as exacerbating a few problems.

It does not really address the issue of privacy unless one is only making DNS requests and not doing anything with said DNS results, as encrypted SNI is still not widely adopted. I guess I would call that cart before the horse. It does not prevent an abusive ISP from blocking access to a site as they can just block all the DoH resolvers or just NXDOMAIN the canary domain which also turns it off by default on most browsers. The bigger issue to me is that it doubles the number of organizations that can track behavior. Now my ISP gets this data and so does Cloudflare if I am the type to leave things default as most people are and they know it. CF may not wish to block something but should they receive a court order from any country they do business in then most people will lose access to something. That could be a future phase we have not yet reached due to mass adoption not reaching a set goal at this time. This is also a one-stop-shop for law enforcement to gather browsing data vs. having to issue a court order to each ISP.

Some people mention it protects against rogue nations but they are by far the last people that DoH would be useful for. Rogue / bad / totalitarian nations will just null route anything they suspect to be a DNS servers not in their control and will extract people from their homes to re-educate them. In a way I can see DoH as being a risk to people in such situations. Meaning they could be accused of bypassing some state level control and may not even realize they were.

In my opinion DoH/DoT should have been highly customizable in a GUI before it was ever implemented and default-off, default opt-out settings and instead if the browser or ideally the OS recognizes it is in a shared WiFi then maybe prompt the person to temporarily enable DoH. That's another issue, it's in the browser and not the OS. So the browser gets protection but nothing else does at least for the last few years. That is coming soon to some operating systems. Curious if they make it obvious what DNS partnership is in place.

Re:Cloudflare 1.1.1.1 DNS resolving issues by fsmv on Wednesday October 04, 2023 @10:56AM (#37766103)
But your home DNS server has to talk to some other server to get the IPs right? Usually it's like DNSMasq configured to cache and forward requests to 8.8.8.8 or whatever.

Is there some other option where you talk directly to the top level DNS root and the nameservers directly??

Edit: my bad you said you talk to the root servers directly. Not sure how to delete comments

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @11:13AM (#37766370)
Edit: my bad you said you talk to the root servers directly. Not sure how to delete comments

It's still a valid question. You are right, one has to bootstrap the root servers. There are a few ways to do this. Assuming one had working DNS server at some point in the past they can

    dig @e.root-servers.net +nocookie +tries=4 +retry=4 +time=8 . ns | grep -Ev "^;|^$" > /etc/unbound/named_hints.tmp # sanity check this
and then do sanity checks on the output prior to loading it as hints in Unbound DNS. The 3K or so root servers are Anycast IP addresses and rarely change so this file will not be stagnant for a very long time thus making thumb drives a valid way to store and transfer this file.
Re:Cloudflare 1.1.1.1 DNS resolving issues by icedchai on Wednesday October 04, 2023 @10:20PM (#37774208)
Why not use the root.hints file available for this purpose? https://www.iana.org/domains/root/files

Generally it is already included with most DNS servers, such as BIND.

Re:Cloudflare 1.1.1.1 DNS resolving issues by LinuxBender on Wednesday October 04, 2023 @10:32PM (#37774268)
That is useful for the initial bootstrapping but should be updated or at least validated a few times a year. If package maintainers are updating it a few times a year that works too.
Re:Cloudflare 1.1.1.1 DNS resolving issues by icedchai on Wednesday October 04, 2023 @10:41PM (#37774328)
Root DNS server IP's do change. However, the old ones stay active for years. Updating your root.hints a few times a year is absolutely not necessary.
Re:Cloudflare 1.1.1.1 DNS resolving issues by beowa on Wednesday October 04, 2023 @09:21AM (#37764718)
> Do you use something besides 8.8.8.8 or 1.1.1.1?

NextDNS

Re:Cloudflare 1.1.1.1 DNS resolving issues by jacooper on Wednesday October 04, 2023 @10:22AM (#37765649)
You can use quad9 without filters, and i use it because unlike CF it supports EDNS(9.9.9.11)
Re:Cloudflare 1.1.1.1 DNS resolving issues by RamblingCTO on Wednesday October 04, 2023 @11:22AM (#37766498)
Duuuuuude, thank you so much! I was using 9.9.9.9 and it didn't work for me at all. Got stuck in a loop with the captcha for months now. Archive.is is essential for me. Using 9.9.9.11 fixed it for me.
Re:Cloudflare 1.1.1.1 DNS resolving issues by Unfrozen0688 on Wednesday October 04, 2023 @10:27AM (#37765708)
ControlD

From the makers of Windscribe VPN (Canadian)

I use the filter that blocks ads and malware 76.76.2.2 76.76.10.2

https://controld.com/free-dns

https://docs.controld.com/docs

Re:Cloudflare 1.1.1.1 DNS resolving issues by ChrisArchitect on Wednesday October 04, 2023 @05:06PM (#37771796)
coincidentally archive.ph links started working for me today, so not sure this is true anymore
Re:Cloudflare 1.1.1.1 DNS resolving issues by 1vuio0pswjnm7 on Wednesday October 04, 2023 @05:34PM (#37772128)
As a "collector of reliable DNS servers" I can report there are DoH servers that will actually take a traditional DNS query that does not support EDNS0 and, perhaps using the client IP from the TCP connection, return a response that includes EDNS0 Client Subnet (ECS). Whether the DoH provider is sending the ECS to authoritative servers I do not know, but to me it is quite sad to see this being returned in the response given I did not request it. Anyway, ECS is supposedly the reason 1.1.1.1 does not include DNS data for archive.is

The site once used a tracking pixel as a poor mans ECS. The client IP address was inserted into the image name. Apparently the operator of the site explained this was used to achieve CDN-like functionality:

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

Re:Cloudflare 1.1.1.1 DNS resolving issues by anuraaga on Wednesday October 04, 2023 @08:10PM (#37773386)
I was using Cloudflare DNS for a while until learning it was the cause of archive brokenness, switched to Google DNS, and recently have started trying out Adguard DNS just out of curiosity of trying out DNS-over-QUIC (requires a VPN app that supports that). Can't say whether it's better or worse but always fun to try out a new tech.
Re:Cloudflare 1.1.1.1 DNS resolving issues by fragmede on Wednesday October 04, 2023 @08:45PM (#37773619)
Cloudflare is in the wrong here. Archive.is had to develop a unique CDN system to protect against illegal content being uploaded and immediately reported, which led to server seizures and downtime. Cloudflare's DNS disrupts this system, putting archive.is at risk. Archive.is even offered to proxy Cloudflare DNS users via their CDN, but Cloudflare rejected the proposal. This leaves archive.is in a vulnerable position, and it's unreasonable to expect them to register their own autonomous system just to fix this issue.