设置GitHub Pages的域名时,遇到如下提示

1
2
The CNAME wanghaorui.com is already taken. 
Check out https://help.github.com/articles/troubleshooting-custom-domains/#cname-already-taken for more information.

这么普通的域名,居然会被别人配置过。

最后让我寻找Github support的帮助。

于是我在https://github.com/contact 写了如下的内容

1
2
3
4
Today I created a repository (GitHub Pages) with CNAME "wanghaorui.com"
"The CNAME wanghaorui.com is already taken. Check out https://help.github.com/articles/troubleshooting-custom-domains/#cname-already-taken for more information."
i am unsure which repository contains the CNAME file with your custom domain,
what should I do now?

大概个把小时,github以邮件的形式通知你如何处理,我一直以为会在站内通知。

1
2
3
4
5
6
7
8
9
10
We can release that domain name for you to use if you can verify your ownership of it with us. A quick way we can verify your ownership of the domain would be for you to add a TXT record to your domain.

When you create the TXT record, please include the following value:

github-verification=xxxxxxxxxxxxxxxxx
If you need a name for the record, please use "@".

......

Please let me know once you've done this so we can verify and clear that domain, or if you have any questions about this verification process.

大体的意思就是,你需要配置一条TXT记录用来证明你是这个域名的所有者,搞定了发邮件给我们,让我们知道。

由于是周末,我过了2天才回复邮件

很快就收到了回复

1
2
Thanks for doing that! I've cleared that domain from it's current location. You can add it to your site by following these steps:
......

配置好域名后,就可以通过自己的域名访问了。