简体   繁体   English

我可以使用根域映射为alb吗?

[英]Can I map as alb with root domain?

I understand we can map AWS ALB URL to CNAME and then use with subdomain. 我了解我们可以将AWS ALB URL映射到CNAME ,然后与子域一起使用。 Route53 provides Alias which allows us to map ALB URL to root domain, say example.com , Does others DNS providers have this options? Route53提供的别名允许我们将ALB URL映射到根域,例如example.com ,其他DNS提供商是否具有此选项? Say GoDaddy or Network Solutions. 说GoDaddy或网络解决方案。

The alias feature is something that is available in AWS Route53 only. 别名功能仅在AWS Route53中可用。 The alias does the mapping internally and assigns the IP address. 别名在内部进行映射并分配IP地址。 If you do nslookup for alias you will surely get an aws ip address. 如果您对别名执行nslookup,那么您肯定会获得aws ip地址。 for other dns provider to be aware of what aws is assigning ip address to an ELB is not possible until and unless both business want to do so. 除非双方都希望这样做,否则其他dns提供商才能知道aws为ELB分配了IP地址。

But there is hope! 但是有希望! and this can be achieved by using AWS Lambda and AWS Cloudwatch Scheduled Events 这可以通过使用AWS LambdaAWS Cloudwatch预定事件来实现

You would need to query the IP address for your ELB and then use Godaddy's API to update your DNS entry over there, you can set an interval like every 5 minutes to do this. 您需要查询ELB的IP地址,然后使用Godaddy的API在那更新您的DNS条目,您可以设置一个间隔,例如每5分钟执行一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM