AWS负载均衡器的A(主机)记录

编程入门 行业动态 更新时间:2024-10-28 16:18:51
本文介绍了AWS负载均衡器的A(主机)记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have a question regarding AWS Load Balancers.

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

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 instead of www.mysite and hit the loadbalancer.

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

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 stops working.

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

Can anyone recommend me a work around for this?

推荐答案

以下是步骤.

  • 点击创建记录集
  • 对于区域顶点记录,只需将名称字段留空
  • 选择您要使用A或AAAA的别名的类型(两种类型之后的所有步骤都相同)
  • 选择是单选按钮.
  • 在另一个选项卡中打开EC2控制台,然后导航到负载均衡器列表. 单击负载均衡器,然后在列表下方的窗格中查看描述选项卡.下面的示例输出
  • Click create record set
  • For zone apex record just leave the name field blank
  • Select the type of alias you want to make A or AAAA (all steps after this are the same for both types)
  • Select the yes radio button.
  • 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(主机)记录

    本文发布于:2023-11-01 20:49:37,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1550381.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:均衡器   负载   主机   AWS

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!