Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github页面如何为每个存储库添加子域?_Github_Dns_Github Pages_Digital Ocean - Fatal编程技术网

Github页面如何为每个存储库添加子域?

Github页面如何为每个存储库添加子域?,github,dns,github-pages,digital-ocean,Github,Dns,Github Pages,Digital Ocean,对于每个github存储库,如https://github.com/user/repository有一个对应的github页面子域repository.github.io,github只是在github.io下动态创建这些子域 有人知道github是如何做到这一点的吗?我希望存在一个易于使用的DNS服务器/DNS服务,它也支持REST。我猜GitHub只是使用一个从*.GitHub.io映射到某个内部GitHub服务器,然后根据请求的URL提供正确的存储库 我不知道你想用GitHub的DNS服务

对于每个github存储库,如
https://github.com/user/repository
有一个对应的github页面子域
repository.github.io
,github只是在
github.io
下动态创建这些子域


有人知道github是如何做到这一点的吗?我希望存在一个易于使用的DNS服务器/DNS服务,它也支持REST。

我猜GitHub只是使用一个从
*.GitHub.io
映射到某个内部GitHub服务器,然后根据请求的URL提供正确的存储库

我不知道你想用GitHub的DNS服务器做什么,但是你可以通过GitHub API创建一个repo: