1
- # 在你的域名服务器提供者上配置一个 A 记录的技巧
1
+ # 在你的 DNS 提供者上配置一个 A 记录的技巧
2
2
3
- 要[ 设置一个自定义顶点域 ] ( https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages ) ,你必须要在你的域名服务器提供者上配置一个 ` ALIAS ` , ` ANAME ` , 或者 ` A ` 记录,这可能会或者可能不会和你的网络主机提供者相同。
3
+ 要[ 设置一个自定义顶点域名 ] ( https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages ) ,你必须要在你的 DNS 提供者上配置一个 ` ALIAS ` , ` ANAME ` , 或者 ` A ` 记录,这可能会或者可能不会和你的网络主机提供者相同。
4
4
5
- ** 警告** :不要在你的域名服务器提供者上为你的自定义顶点域创建一个 ` CNAME ` 记录!这样做可能会导致与其他服务,如电子邮件,在该域的问题。
5
+ ** 警告** :不要在你的 DNS 提供者上为你的自定义顶点域名创建一个 ` CNAME ` 记录!这样做可能会导致与其他服务,如电子邮件,在该域的问题。
6
6
7
- 要获取更多的自定义顶点域信息,详见“[ 关于 GitHub 页面站点的自定义顶点域 ] ( https://help.github.com/articles/about-custom-domains-for-github-pages-sites#apex-domains ) ”
7
+ 要获取更多的自定义顶点域信息,详见“[ 关于 GitHub 页面站点的自定义顶点域名 ] ( https://help.github.com/articles/about-custom-domains-for-github-pages-sites#apex-domains ) ”
8
8
9
- ** 提示** :你可以仅仅只为 GitHub 页面站点配置一个自定义子域或者一个自定义顶点域 ,[ 除非你使用一个 ` www ` 子域] ( https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/#configuring-a-www-subdomain ) 。
9
+ ** 提示** :你可以仅仅只为 GitHub Pages 站点配置一个自定义子域名或者一个自定义顶点域名 ,[ 除非你使用一个 ` www ` 子域] ( https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/#configuring-a-www-subdomain ) 。
10
10
11
- ## 在你的域名服务器上配置一个 A记录
11
+ ## 在你的 DNS 上配置一个 A 记录
12
12
13
- 在你的域名服务器提供者上 ,创建 A 记录来解决以下的IP地址:
13
+ 在你的 DNS 提供者上 ,创建 A 记录来解决以下的IP地址:
14
14
15
15
- 192.30.252.153
16
- - 192.30.252.154
16
+ - 192.30.252.154
17
17
18
18
为了确保你的 A 记录设置正确,使用 ` dig ` 命令:
19
19
@@ -24,11 +24,11 @@ example.com. 73 IN A 192.30.252.153
24
24
example.com. 73 IN A 192.30.252.154
25
25
```
26
26
27
- ## 在你的域名服务器提供者上配置一个 ` ALIAS ` 或者一个 ` ANAME ` 记录
27
+ ## 在你的 DNS 提供者上配置一个 ` ALIAS ` 或者一个 ` ANAME ` 记录
28
28
29
- 如果你的域名服务器提供者支持 ALIAS 记录(例如是 [ DNSimple] ( https://dnsimple.com/ ) )或者 ANAME 记录(例如是 [ DNS Made Easy] ( http://www.dnsmadeeasy.com/services/aname-records/ ) ),你可以选择创建一个 ` ALIAS ` 记录或者一个 ` ANAME ` 记录来代替 ` username.github.io ` 。
29
+ 如果你的 DNS 提供者支持 ALIAS 记录(例如是 [ DNSimple] ( https://dnsimple.com/ ) )或者 ANAME 记录(例如是 [ DNS Made Easy] ( http://www.dnsmadeeasy.com/services/aname-records/ ) ),你可以选择创建一个 ` ALIAS ` 记录或者一个 ` ANAME ` 记录来代替 ` username.github.io ` 。
30
30
31
- ** 注意** :一些域名服务器提供者允许顶点域配置一个 ALIAS 记录指向其他的域名。
31
+ ** 注意** :一些 DNS 提供者允许顶点域名配置一个 ALIAS 记录指向其他的域名。
32
32
33
33
为了确保你的 ` ALIAS ` 或者 ` ANAME ` 记录设置正确,使用 ` dig ` 命令:
34
34
@@ -37,20 +37,20 @@ $ dig example.com +nostats +nocomments +nocmd
37
37
example.com. 3600 IN A 199.27.XX.XXX
38
38
```
39
39
40
- 在这里显示的IP地址必须要和 ` dig username.github.io ` 所显示的最终的IP地址相匹配 。
40
+ 在这里显示的 IP 地址必须要和 ` dig username.github.io ` 所显示的最终的 IP 地址相匹配 。
41
41
42
42
## 配置一个 ` www ` 子域
43
43
44
- 如果你配置一个顶点域 (例如 ` example.com ` )和一个匹配的 ` www ` [ 子域] ( https://help.github.com/articles/about-custom-domains-for-github-pages-sites#subdomains ) (例如 ` www.example.com ` ), GitHub 服务器会自动的创建两重定向。
44
+ 如果你配置一个顶点域名 (例如 ` example.com ` )和一个匹配的 ` www ` [ 子域] ( https://help.github.com/articles/about-custom-domains-for-github-pages-sites#subdomains ) (例如 ` www.example.com ` ),GitHub 服务器会自动的创建两重定向。
45
45
46
46
例如:
47
47
48
- - 如果你的 ` CNAME ` 文件包含 ` example.com ` ,那么 ` www.example.com ` 会定向到 ` example.com ` 。
48
+ - 如果你的 ` CNAME ` 文件包含 ` example.com ` ,那么 ` www.example.com ` 会定向到 ` example.com ` 。
49
49
50
- - 如果你的 ` CNAME ` 文件包含 ` www.example.com ` ,那么 ` example.com ` 会定向到 ` www.example.com ` 。
50
+ - 如果你的 ` CNAME ` 文件包含 ` www.example.com ` ,那么 ` example.com ` 会定向到 ` www.example.com ` 。
51
51
52
52
你可以使用除 ` www ` 以外的一个自定义子域和一个自定义顶点域一起通过域名重定向(有时也称为“域名转发”)。但是,请注意,这仅仅只用于用户和组织的页面,而非项目页面。
53
53
54
54
# 进一步了解
55
55
56
- - “[ 在 GitHub 页面上设置一个自定义域] ( https://help.github.com/articles/setting-up-a- custom-domain-with-github-pages ) ”
56
+ - “[ 在 GitHub 页面上设置一个自定义域] ( set- custom-domains.md ) ”
0 commit comments