GenericJam
GenericJam

Reputation: 3015

Amazon Route 53 Name Doesn't Resolve to Endpoint

This is the first time AWS for anything for me so I'm a complete newbie to this subject.

I registered a name with Route 53 and am using S3 using the static website settings there. I followed AWS's tutorial on setting up a static website from the Route 53 side (to the best of my knowledge). Currently, if I put mydomain.com into the browser url it will give me DNS_PROBE_FINISHED_NXDOMAIN or some similar "site not found" type error. When I check with whois, the domain shows up as registered. If I ping mydomain.com I get "unknown host". If I ping the S3 endpoint of mydomain.com.s3-website-us-west-2.amazonaws.com it gives proper results. Also, if I put in mydomain.com.s3-website-us-west-2.amazonaws.com into a browser it redirects to mydomain.com like it should.

Here is the view of the Route 53 control panel for the record of my domain (minus the domain name): Route 53 Screenshot

What am I doing wrong? Thanks in advance.

Upvotes: 3

Views: 4998

Answers (2)

Sebastien H.
Sebastien H.

Reputation: 7136

here's an answer from the comments :

Assuming you registered "mydomain.com"

In S3 :

  • Create a Bucket with your domain name (optional, not sure the name has something to do with it appearing or not in your Route 53 aliases)
  • Add Public permissions so that anyone can list it (to be verified)
  • Add public routing policy (samples can be easily found)
  • in the properties, go to "Static Website hosting", then select "Redirect all requests" and enter to URL where to send them : www.mydomain.com

In route 53 :

  • Select your hosted zone "mydomain.com"
  • Create a new record set : type : IPV4, alias : yes
  • Alias target : this is where you select the S3 bucket you just created and that's it, save and it should be just fine.

hope this will keep you from wasting hours on the subject.

Also know that for obscure reasons, i've seen that some bucket would not appear immediately

Upvotes: 2

niteshd22
niteshd22

Reputation: 511

My Bad i didn't read question properly.

Select your bucket and in properties you will find option of 'static website hosting' in that check 'Enable website hosting'. Make required files in the bucket as public. In Route 53 use Endpoint of bucket as MX records, CNAME records, and A records.

Upvotes: -1

Related Questions