github 页面自定义域 - 无法将 AWS 路由 53 域指向它

问题描述 投票:0回答:1

我正在尝试将我的 AWS 托管域指向我的 github 页面。

在 Route 53 控制台中,我根据 github 页面说明创建了以下记录:

Type A:

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

Type AAAA

2606:50c0:8000::153
2606:50c0:8001::153
2606:50c0:8002::153
2606:50c0:8003::153

如果我创建这些,然后尝试将我的域添加到我的 github 页面,那么我会收到以下错误 Github pages error

在AWS中,AWS默认创建NS和SOA记录(我无法删除,只能更改):


NS:

ns-1929.awsdns-49.co.uk.
ns-1160.awsdns-17.org.
ns-548.awsdns-04.net.
ns-266.awsdns-33.com.

SOA
ns-773.awsdns-32.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

**问题:

I am assuming the problem is with the two records above? What should I change these to?
Or am I doing something else wrong?**

仅供参考,我正在关注这篇文章,但它没有提及 NS 和 SOA 记录。

谢谢

https://medium.com/@benwiz/how-to-deploy-github-pages-with-aws-route-53-registered-custom-domain-and-force-https-bbea801e5ea3

amazon-web-services dns github-pages
1个回答
0
投票

对于顶级域名,我们需要 2 条记录:

  1. 指向 Github Pages IP 的记录
Type: A

Name: your-domain.com

Value:
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
  1. 指向您帐户的CNAME记录
Type: CNAME

Name: www.your-domain.com

Value: your-github-account-name.github.io
© www.soinside.com 2019 - 2024. All rights reserved.