News for hackers. Stuff that matters.
Re:HN search engine now shows Google's 404 error page by makestuff on Thursday October 05, 2023 @09:38AM (#37778452)
I was testing out something and ran into this issue yesterday as well. I created a cname to point to http://ip.jsontest.com/ so I could validate my DNS was working. For some reason I was getting the google 404 page.
Re:HN search engine now shows Google's 404 error page by danpalmer on Thursday October 05, 2023 @10:20AM (#37778957)
That would be because that site is hosted on a Google service, but depends on the hostname to figure out which customer/backend to use. This is normal for any multi-tenant hosting. Your CNAME is not registered for that application in the hosting service's database and therefore they can't tell what it's for.

Remember that a CNAME isn't a redirect or anything, there's literally no way for the receiving webserver to know the domain that was CNAME'd in these sorts of requests.