AWS负载均衡器的A(主机)记录 [英] A(Host) Records with AWS Load Balancer

查看:348
本文介绍了AWS负载均衡器的A(主机)记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对AWS负载均衡器有疑问.

I have a question regarding AWS Load Balancers.

我可以将我的CNAME www完美地指向我的负载均衡器的DNS,并且我知道它将一直有效,但是我还需要将@记录指向负载均衡器,以便人们可以访问mysite.com而不是www.mysite.com并点击负载均衡器.

I can point my CNAME www to my load balancer's DNS perfectly and i know it will always work, BUT I also need to point the @ record to the load balancer so people can access mysite.com instead of www.mysite.com and hit the loadbalancer.

问题在于A记录必须指向IP地址,因此我无法指向DNS,并且负载均衡器的IP不断变化,因此mysite.com停止工作.

The problem is that the A Records have to point an IP Address so i can't point to the DNS and the IP of the load balancer keeps changing so mysite.com stops working.

有人可以推荐我解决此问题的方法吗?

Can anyone recommend me a work around for this?

推荐答案

以下是步骤.

  1. 点击创建记录集
  2. 对于区域顶点记录,只需将名称字段留空
  3. 选择您要使用A或AAAA的别名的类型(两种类型之后的所有步骤都相同)
  4. 选择是单选按钮.
  5. 在另一个选项卡中打开EC2控制台,然后导航到负载均衡器列表. 单击负载均衡器,然后在列表下方的窗格中查看描述选项卡.下面的示例输出
  1. Click create record set
  2. For zone apex record just leave the name field blank
  3. Select the type of alias you want to make A or AAAA (all steps after this are the same for both types)
  4. Select the yes radio button.
  5. Open the EC2 console in another tab and navigate to the list of your load balancers. Click on the load balancer and look at the description tab in the pane below the list. Sample output below

这篇关于AWS负载均衡器的A(主机)记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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