S3 Bucket + Route 53 + CloudFront

0

Hello,

I'm having some trouble resolving my website. I'm hosting my personal portfolio website statically on an S3 bucket, and was originally pointing my record sets to the S3 bucket itself.

However, I set up a CloudFront distribution in order to provide SSL / TLS for my website. I can verify that the distribution resolves properly and I can visit my website via [d14ngtcm7ru5in.cloudfront.net].

I have also set a 4 record sets, 2 for [ryanliu6.xyz] and 2 for [www.ryanliu6.xyz] for both IPv4 and IPv6. However, the website fails to resolve and I'm honestly not sure why.

Any help would be greatly appreciated,

Ryan.

  • After using CloudFront to serve HTTPS requests to my Amazon S3 bucket, should I still configure routing traffic to S3?

Krvais
질문됨 5년 전381회 조회
5개 답변
0
수락된 답변

Hi,

Probably not. DNS recursive resolvers cache the names of name servers for up to two days, so the DNS resolver that got the wrong name servers from Route 53 still is using those name servers. Folks who use a different DNS resolver should be able to access your website now if everything else is set up correctly. The Route 53 Developer Guide explains how this works at a high level. See "How Amazon Route 53 Routes Traffic for Your Domain":

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/welcome-dns-service.html#welcome-dns-service-how-route-53-routes-traffic

Scott

전문가
답변함 5년 전
0

The nameservers assigned to your domain name don't have any DNS records for it. Check the NS records of your hosted zone in Route 53 for the correct list of nameservers you should be using. Then attach those to your domain via your registrar's control panel. If that's also Route 53, you can do so via "Registered Domains".

RobMM
답변함 5년 전
0

Hi,

I took a look at your hosted zone and your domain. The name servers that Route 53 assigned to your hosted zone should also appear in two other locations:
~ The NS record for the hosted zone
~ The name servers that are associated with the domain registration

The name servers in the NS record and the name servers for the domain are different from the name servers that Route 53 assigned to the hosted zone. Here's how you fix that:

  1. Get the name servers that Route 53 assigned to the hosted zone. See "Getting the Name Servers for a Public Hosted Zone" in the Route 53 Developer Guide:

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/GetInfoAboutHostedZone.html

  1. Update the NS record in the hosted zone to use the name servers that you got in step 1. See "Editing Records":

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-editing.html

  1. Update the domain registration to use the name servers that you got in step 1. See "Adding or Changing Name Servers and Glue Records for a Domain":

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-name-servers-glue-records.html

Scott

전문가
답변함 5년 전
0

Thank you and RobMM for replying. I have done as suggested but still am not able to access the website as expected.

Was there something I've missed?

Thanks

Krvais
답변함 5년 전
0

Seems to be working here. Should probably work for you, too, by now.

RobMM
답변함 5년 전

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

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

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