Hacker News new | ask | show | jobs
by swiley 2197 days ago
How does GitHub’s gh pages handle this? I don’t remember them doing anything either.
3 comments

They don't. I've lost ability to deploy GitHub pages to domains I own because of this, when a repo went out of my control with CNAME set... Now I cannot change the CNAME there, and cannot verify a new repo with that name.

So far GitLab seems to be the best one I've run into, they do validation, and as long as you keep control of the domain, you keep control of your pages.

Pretty sure you have to set some DNS records for gh pages
Yes you have to point a record at the gh pages if you want to use dns with it, but I don’t think their server checks for that.
Is it possible to subscribe to a firehose of .COM NS record updates through one of those fancy things like dnsdb? If so, perhaps there's an opportunity here for exploiting that race condition en-masse for services that support direct NS-style delegation, like netlify.
I actually don't know as I haven't used it in a while. But I did just test netlify and the same issue exists there, domains need to be unique, perhaps there isn't a nice way of dealing with that edge case.