Freenom.com和AWS Amplify:Amazon要求我“配置根域"(@ ANAME abc-whatever-xyz.cloudfront.net)->Freenom:不允许使用通配符 [英] Freenom.com and AWS Amplify: Amazon asks me to 'configure root domain' (@ ANAME abc-whatever-xyz.cloudfront.net) -> Freenom: wild cards not allowed

查看:256
本文介绍了Freenom.com和AWS Amplify:Amazon要求我“配置根域"(@ ANAME abc-whatever-xyz.cloudfront.net)->Freenom:不允许使用通配符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在AWS Amplify上使用自定义域名.

I am trying to use a custom domain name on AWS Amplify.

该过程中的第2步是:

2.配置根域为了使用根域,您必须在DNS提供商中配置ANAME记录(也称为ALIAS).如果您的DNS提供商不支持ANAME/ALIAS,请迁移您的区域文件到Amazon Route53.了解更多如果您要迁移自定义已为生产流量提供服务的域,请等到您的新应用程序已成功加载到.cloudfront.net URL在更新DNS记录之前显示如下:

2. Configure root domain In order to use your root domain you must configure an ANAME record (also called an ALIAS) in your DNS provider. If your DNS provider does not support ANAME/ALIAS, migrate your zone file to Amazon Route53. Learn more If you are migrating a custom domain that is already serving production traffic, please wait until your new application loads successfully at the .cloudfront.net url shown below before updating your DNS records:

我需要插入的值是:

@
ANAME
abc-whatever-xyz.cloudfront.net

请注意,Freenom没有名为"ANAME"的类型.然而,存在"A".以及"AAAA".如果我使用"A"并插入值,则会收到以下警告:

Please note that Freenom does not have a type called "ANAME". However, there is "A" as well as "AAAA". If I use the "A", and plug in the values I receive the following warning:

发生错误:不允许使用通配符!

Error occured: Wild cards are not allowed!

我该怎么办?

推荐答案

要在 https:/下使用AWS Amplify应用程序/your-domain.org ,您需要创建一个 A 记录,更具体地说,是一个 ANAME/ALIAS 记录.您可以按照以下说明 https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/migrate-dns-domain-in-use.html (如果您的DNS服务不支持ANAME/ALIAS记录).

To make your AWS Amplify app available under https://your-domain.org you need to create an A record, more specifically an ANAME / ALIAS record. You can transfer your host zone to AWS Route 53 as described here https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/migrate-dns-domain-in-use.html if your DNS Service does not support ANAME / ALIAS records.

将DNS服务切换到AWS Route 53后,并且正在使用AWS名称服务器,您需要添加ANAME/ALIAS记录.我发现最简单的方法是通过AWS Amplify控制台.转到您的应用,然后转到域管理.如果您尚未为AWS Amplify应用程序设置域,请遵循此处的指南 https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html .点击管理子域,然后输入您的根域(即 https://your-domain.org )点击右侧的 disable .AWS Amplify控制台中的域状态将显示为可用(带有蓝点).等到状态变为绿色选中标记.再次单击管理子域,然后再次启用根域.等待状态再次变为绿色的选中标记.

After you have switched your DNS Service to AWS Route 53 and the AWS name servers are in use you need to add the ANAME / ALIAS record. I found that the most straightforward way to do so is via the AWS Amplify console. Go to your app and then to Domain management. If you haven't already setup up a domain for your AWS Amplify app, follow the guide here https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html. Click on Manage Subdomains and for your root domain (i.e. https://your-domain.org) click disable on the right. The domain status in the AWS Amplify console will say Available (with blue dots). Wait until the status changes into a green checkmark. Click again on Manage Subdomains and enable the root domain again. Wait until the status changes again into a green checkmark.

转到AWS Route 53主机区域.新纪录

Go to the AWS Route 53 host zone. A new record

your-domain.org xxxxx.cloudfront.net.

添加了您的根域的ANAME/ALIAS记录,以指向xxxxx.cloudfront.net上的AWS Amplify应用程序.

was added which is the ANAME / ALIAS record for your root domain to point to the AWS Amplify app at xxxxx.cloudfront.net.

这篇关于Freenom.com和AWS Amplify:Amazon要求我“配置根域"(@ ANAME abc-whatever-xyz.cloudfront.net)->Freenom:不允许使用通配符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆