0

我在 Lightsail 上设置了一个 Wordpress,并创建了一个静态 IP,我可以访问 WP ok。

我已将我的.co.uk域从另一个提供商迁移到 Route53,并试图指向blog.example.co.uk我的 Lightsail 实例。

在 Lightsail 中,我设置了如下 DNS 记录:

A   example.co.uk           12.34.56.78
A   blog.example.co.uk      12.34.56.78

然后,它会在 Lightsail 中列出这些 DNS 服务器:

ns-849.awsdns-42.net
ns-1643.awsdns-13.co.uk
ns-341.awsdns-42.com
ns-1516.awsdns-61.org

我已经使用了那些 DNS 服务器,并在 Route 53 中的域的根目录下设置Domains > Registered Domains

我不确定这样做是否正确,因为我最终会有其他子域指向其他地方,是否应该在该级别添加 Lightsail DNS 服务器?如果不是,我将它们设置为什么?

我还创建了一个 Route53 托管区域,并创建了一个将 blog.example.co.uk 链接到 12.34.56.78 的“A”条目,这是必需的吗?

4

1 回答 1

3

As mentioned in the comments, I was facing the same challenge.

What ended up working for me was simply creating an Alias Record (A) for my subdomain, subdomain.example.com, that points to the static IP of my Lightsail instance.

I did not add Lightsail's DNS servers anywhere on Route53.

I made sure that the NS entries for my root domain – example.com – pointed to the Name servers entries on my registered domain in Route53.

You can find the name servers associated with your Route53 registered domain by going to Registered domains > mydomain.com; they're located on the upper-right corner.

于 2018-05-20T17:46:14.507 回答