-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update chapter about custom domain setting #21
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,11 +277,17 @@ GitHub 为每一个用户分配了一个二级域名\ ``<user-id>.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修改生效时间最长可能需要一天。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 实际上 worldhello.net 的二级域名也直接别名指向 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 恩,www.worldhello.net和worldhello.net都指向gotgit.github.io。你原文中写的是指向\ |
||
|
||
完成域名的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``\。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 设置两条 A 记录没有必要 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 设置两条A记录是github帮助页面写的,我不是很清楚这样设置的原因。可能是互为备份吧。 |
||
DNS修改生效时间最长可能需要一天。 | ||
|
||
完成域名的DNS指向后,可试着用\ ``ping``\ 或\ ``dig``\ 命令确认域名\ ``www.worldhello.net``\ | ||
和\ ``gotgit.github.io``\ 指向同一IP地址。 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping 命令确认IP指向一致。dig 命令诊断域名解析方式。
|
||
:: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地址无效,可能是上次批量替换时的错误。