News for hackers. Stuff that matters.
Re:Ask HN: How did internet discover my subdomain? by vince14 on Thursday March 06, 2025 @07:06PM (#43286319)
I'm having the same issue.

https://securitytrails.com/ also had my "secret" staging subdomain.

I made a catch-all certificate, so the subdomain didn't show up in CT logs.

It's still a secret to me how my subdomain ended up in their database.

Re:Ask HN: How did internet discover my subdomain? by selcuka on Thursday March 06, 2025 @07:15PM (#43286374)
They could be purchasing DNS query logs from ISPs.
Re:Ask HN: How did internet discover my subdomain? by johnklos on Thursday March 06, 2025 @07:30PM (#43286463)
Serious question: Do you really think that Cloudflare is trying to keep these kinds of thing private? If so, I'd suggest that's not a reasonable expectation.
Re:Ask HN: How did internet discover my subdomain? by fc417fc802 on Friday March 07, 2025 @03:29AM (#43288267)
Related question (not rhetorical). If you do DNS for subdomains yourself (and just use Cloudflare to point dns.example.com at your box) will the subdomain queries leak and show up in aggregate datasets? What I'm asking is if query recursion is always handled locally or if any of the reasonably common software stacks resolve it remotely.
Re:Ask HN: How did internet discover my subdomain? by immibis on Friday March 07, 2025 @09:37AM (#43290504)
As well as assuming Cloudflare sells DNS lists, it's probably safe to assume the operators of public resolvers like 8.8.8.8, 9.9.9.9 and 1.1.1.1 (that is Google, Quad9 and Cloudflare again) are looking at their logs and either selling them or using them internally.
Re:Ask HN: How did internet discover my subdomain? by johnklos on Monday March 10, 2025 @06:07PM (#43326647)
If you just use Cloudflare as a registrar, then they can't see what resolution happens on your servers.

If you delegate a subdomain through Cloudflare to your own DNS servers, from what I remember from the animal book, the recursive server should ask Cloudflare for the address of the machine to which the delegation has been made (yours), and while any further resolutions would be answered by your machine, Cloudflare would at very least know of every query to that subdomain.

If you delegate a subdomain and have subdomains under that subdomain, then Cloudflare would only see resolutions to that subdomain and not to the sub-subdomains.

In other words, for most things, they'd have full insight.

Re:Ask HN: How did internet discover my subdomain? by arccy on Thursday March 06, 2025 @07:20PM (#43286394)
maybe your server responded to a plain ip addressed request with the real name...
Re:Ask HN: How did internet discover my subdomain? by averageRoyalty on Friday March 07, 2025 @12:22AM (#43287546)
Host header is a request header, not a response one, isn't it?
Re:Ask HN: How did internet discover my subdomain? by fc417fc802 on Friday March 07, 2025 @03:21AM (#43288223)
He said he used a wildcard cert though. So what part of the response would contain the subdomain in that case?