19 points · by obi1kenobi · 6y ago · 10 comments
You should get a certificate warning, and if you choose to proceed anyway, you'll get a Cloudflare-originated 403 Forbidden page.
Now set 8.8.8.8 as your DNS and reload the page, and you'll see it open normally. No broken cert, no 403 status code, just a working website.
I found this very unexpected. Am I missing something obvious, or am I not the only one surprised to see this?
See previous discussion at https://news.ycombinator.com/item?id=19828317 .
""" Error 1001 Ray ID: 599a073ddbc3ae0c • 2020-05-26 19:50:59 UTC DNS resolution error What happened? You've requested a page on a website (archive.md) that is on the Cloudflare network. Cloudflare is currently unable to resolve your requested domain (archive.md). There are two potential causes of this:
Most likely: if the owner just signed up for Cloudflare it can take a few minutes for the website's information to be distributed to our global network. Less likely: something is wrong with this site's configuration. Usually this happens when accounts have been signed up with a partner organization (e.g., a hosting provider) and the provider's DNS fails. Cloudflare Ray ID: 599a073ddbc3ae0c • Your IP: ... • Performance & security by Cloudflare """
This raises more questions:
- Why doesn't Cloudflare just return NXDOMAIN if it thinks the domain doesn't exist, rather than resolving to a bogus server?
- Why doesn't it just drop and time out the request, so my computer decides to fall back to an alternate DNS resolver?
- Why doesn't it show that error text when a path is present, instead of just serving a HTTP 403 Forbidden error with no additional information. curl -H "Host: archive.md" http://188.143.233.210/FyTDB > index.html
(You can get archive.md's IP using: dig archive.md @8.8.8.8
This should work on practically any Linux box.)