From 58c77b4c42647d44aeadb0427d270e10839ba3ef Mon Sep 17 00:00:00 2001 From: Scott Zhou Date: Mon, 2 Nov 2015 15:43:12 +0100 Subject: [PATCH] Update chapter about custom domain setting The old description about how to setting domain with DNS provider is not very clear. It will be better if it can have more description. --- 03-project-hosting/050-homepage.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/03-project-hosting/050-homepage.rst b/03-project-hosting/050-homepage.rst index 45e6de8..2e0296d 100644 --- a/03-project-hosting/050-homepage.rst +++ b/03-project-hosting/050-homepage.rst @@ -277,11 +277,17 @@ GitHub 为每一个用户分配了一个二级域名\ ``.github.io``\ 参见: https://github.com/gotgit/gotgit.github.io/blob/master/CNAME -2. 然后更改域名\ ``www.worldhello.net``\ 的IP地址,指向域名\ ``gotgit.github.io``\ - 对应的IP地址(注意不是\ ``github.com``\ 的IP地址)。 +2. 转到域名提供商的配置页面,设置二级域名\ ``worldhello.net``\跳转到三级域名\ ``www.worldhello.net``\。 + DNS修改生效时间最长可能需要一天。 - 完成域名的DNS指向后,可试着用\ ``ping``\ 或\ ``dig``\ 命令确认域名\ - ``www.worldhello.net``\ 和\ ``gotgit.github.io``\ 指向同一IP地址。 +3. 在域名提供商的配置页面,创建CNAME记录,使子域名\ ``www``\指向\ ``gotgit.github.io``\。 + DNS修改生效时间最长可能需要一天。 + +4. 在域名提供商的配置页面,创建两条A记录,分别解析为IP地址\ ``192.30.252.153``\和\ ``192.30.252.154``\。 + DNS修改生效时间最长可能需要一天。 + +完成域名的DNS指向后,可试着用\ ``ping``\ 或\ ``dig``\ 命令确认域名\ ``www.worldhello.net``\ +和\ ``gotgit.github.io``\ 指向同一IP地址。 ::