How would you own the server if you don't know what the domain is going to be? Perhaps I don't understand.
Edit: Ah, wildcard subdomain? Does that get prefetched in Slack? Pretty terrible if so.
Edit: Ah, wildcard subdomain? Does that get prefetched in Slack? Pretty terrible if so.
*.example.com. 14400 IN A 1.2.3.4
after that just collect webserver logs.
In case of DNS prefetching, a wildcard record wouldn't be needed, you just need to control the nameservers of the domain and enable query logging.
But I'm not sure how do browsers decide what links to DNS prefetch, maybe it's not even possible for links generated with JS or something like that ... I'm just guessing.
ie:
secret.attacker-domain.com will end up asking the dns for attacker-domain.com about secret.attacker-domain.com, and that dns server can log the secret and return an ip