My domain on Route 53 is not reaching my server created on AWS Lightsail

0

Hi AWS folk! I am trying to create my own website using AWS Route 53 and Lightsail.

In Route 53, I registered a domain somedomain.com, and created a public hosted zone. The hosted zone configuration has four name servers that match the "Value/Route traffic to" of the NS record of the hosted zone.

In Lightsail, I have created a Wordpress website. I provided a static IP to the Lightsail instance. Under Networking, I created a DNS zone (using the registered domain somedomain.com from the previous step) which had also four name servers (different from the four name servers in Route 53).

Now when I try to reach my website using the instance's static IP address it works perfectly. However, when I browse using my domain name I keep getting "This site can’t be reached".

Here's my configuration of the Route 53 Hosted zone

Route 53 configuration

Here's the configuration of the DNS zone on Lightsail:

Lightsail configuration

Am I missing something or maybe have some wrong configuration?

Any help is highly appreciated!

mzamam
질문됨 2년 전882회 조회
2개 답변
0
수락된 답변

Hi,

Since you registered the domain with Route53, the nameservers listed in the hosted zone in Route53 take effect. But as per the information shared above, the A/CNAME records are created in DNS zones in lightsail and the site is unreachable.

The quickest thing you can do is add the DNS records (A/CNAME) in Route53 also and verify that you are able to access the site via FQDN. If this works, it confirms that the nameservers from Route53 are used for lookup. Another alternative way to check which set of NS servers are used, you can do a DNS lookup for nameserver for the FQDN to confirm whether it's using config from Route53 or DNS zones in Lightsail

dig <FQDN> -t NS

Hosted zones should either be created in Route53 or DNS zones but not both. If you want to use Lightsail DNS zones, then you need to change the nameservers using this link as reference

--Syd

profile picture
Syd
답변함 2년 전
  • Thanks for the answer! I removed the Hosted zone in Route 53 and kept only the DNS zone in Lightsail. I added the DNS records (A/CNAME) in Lightsail and it worked!!

0

Route 53 hosted zone deletation eror

profile picture
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인