名称服务器更改从NameCheap更改为AWS,无法找到消息example.com的服务器DNS地址

时间:2021-04-26 01:57:54

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.

我在namecheap.com上注册了我的域名,并尝试在AWS S3中托管我的个人资料静态站点,我正在尝试按照AWS Amazon Route 53中给出的规则更改名称服务器但不成功,以下是我遵循的步骤。

Created Hosted Zones as below 名称服务器更改从NameCheap更改为AWS,无法找到消息example.com的服务器DNS地址

创建托管区域如下

and in my namecheap.com i changed the nameserver as below 名称服务器更改从NameCheap更改为AWS,无法找到消息example.com的服务器DNS地址

在我的namecheap.com中,我更改了名称服务器,如下所示

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

但是当我点击我的网站时,我仍然无法解析DNS。我的S3存储桶配置正确,因为我可以使用S3网址查看我的网站,任何帮助表示赞赏

I created alias by clicking on the Create Record Set and added the below configuration 名称服务器更改从NameCheap更改为AWS,无法找到消息example.com的服务器DNS地址

我通过单击“创建记录集”创建了别名,并添加了以下配置

1 个解决方案

#1


1  

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

使用S3创建网站时,请务必确保您的存储桶名称与域名相匹配。

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.

例如,如果您将www.domain.com映射到S3,那么您的存储桶名称应为“www.domain.com”,如果您要映射domain.com,那么您的存储桶名称应为“domain.com”或存储桶端点不会像在你的情况下那样出现在别名中。

#1


1  

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

使用S3创建网站时,请务必确保您的存储桶名称与域名相匹配。

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.

例如,如果您将www.domain.com映射到S3,那么您的存储桶名称应为“www.domain.com”,如果您要映射domain.com,那么您的存储桶名称应为“domain.com”或存储桶端点不会像在你的情况下那样出现在别名中。