Search code examples
amazon-web-servicesamazon-s3amazon-route53namecheap

Name Server Change From NameCheap to AWS, Giving the message example.com’s server DNS address could not be found


I registered my domain on namecheap.com, and trying to host my profile static site in AWS S3, I'm trying to change the name servers followed the rules given in AWS Amazon Route 53 but not successful, here are the steps i followed.

Created Hosted Zones as below enter image description here

and in my namecheap.com i changed the nameserver as below enter image description here

But still I'm getting DNS cannot be resolved when hit my site. and my S3 buckets are configured properly as i can view my site with S3 url, any help is appreciated

I created alias by clicking on the Create Record Set and added the below configuration enter image description here


Solution

  • When you are creating a website using S3 always make sure your bucket name matches the name of the the domain.

    So for example if you are mapping www.domain.com to S3 then your bucket name should be "www.domain.com" and if you want to map domain.com then your bucket name should be "domain.com" or the bucket endpoint will not show up in the alias like it happened in your case.