简体   繁体   English

EC2公共IP地址与Route 53记录不匹配

[英]EC2 public IP address does not match Route 53 record

I have a customer who has an EC2(VPC) server. 我有一个拥有EC2(VPC)服务器的客户。 When I checked the infrastructure I found out that the EC2 public IP address is not the same as attached to a server domain in Route 53 (it is not Elastic Ip Address). 当我检查基础结构时,我发现EC2公共IP地址与附加到Route 53中服务器域的地址不同(它不是弹性IP地址)。

Why is the EC2 IP address (IPv4 Public IP) not the same to the one in Route53 Record A and yet it is pointing to the same server? 为什么EC2 IP地址(IPv4公共IP)与Route53记录A中的IP地址不同,却指向同一服务器?

When an Amazon EC2 instance is launched and a Public IP address is enabled , a public IP address will be assigned to the instance. 启动Amazon EC2实例并启用公共IP地址时,将为该实例分配一个公共IP地址。 If the instance is stopped and started, it might receive a different public IP address. 如果实例停止并启动,则它可能会收到其他公共IP地址。

To obtain a static (non-changing) IP address: 要获取静态(不变)IP地址:

  • Create an Elastic IP Address 创建弹性IP地址
  • Assign it to the Amazon EC2 instance 将其分配给Amazon EC2实例

The Elastic IP address will replace the public IP address. 弹性IP地址将替换公用IP地址。

If there is a Record Set in Amazon Route 53 that associates a domain name with an IP address, it is your responsibility to update the record when the target instance IP address changes. 如果Amazon Route 53中有一个将域名与IP地址相关联的记录集,则当目标实例IP地址更改时,您有责任更新记录。 There is no automatic ability to change the Record Set. 没有自动功能可以更改记录集。

So, why is the IP address in Route 53 not the same as the instance Public IP address? 那么,为什么Route 53中的IP地址与实例的Public IP地址不同? It's probably because nobody updated the Record Set in Route 53 when the IP address changed. 可能是因为IP地址更改后,没有人更新Route 53中的记录集。

暂无
暂无

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

相关问题 terraform route53 最简单的示例,用于在指向 ec2 实例的公共 IP 的托管区域中创建 dns 记录 - terraform route53 simplest example to create a dns record in hosted zone pointing to public IP of ec2 instance AWS Route 53 将我指向 EC2 公共 IPv4 地址 - AWS Route 53 pointing me back to EC2 Public IPv4 Address 您是否可以在同一个cloudformation脚本中将Route53资源记录设置为EC2实例的IP? - Can you set a Route53 Resource Record as the IP of an EC2 instance in the same cloudformation script? 将 EC2 IP 路由到自定义 Route 53 域 - Route EC2 IP to custom Route 53 domain 将EC2公共IP地址指向子域 - Point EC2 public IP address to subdomain 将AWS Route 53 DNS记录静态链接到EC2实例 - Statically link AWS Route 53 DNS record to EC2 instance AWS EC2和Route 53域(从其他提供商转移)的链接问题| nslookup不能解析任何IP地址 - AWS EC2 and Route 53 Domain ( Transfered from different Provider ) Linking Issues | nslookup doesnt resolve any ip address 无法使用在 route53 中注册的域访问我的服务器,但可以通过其 ec2 ip 地址访问 - Not able to access to my server with domain registered in route53 but can access via its ec2 ip address AWS CloudFormation模板将IP地址添加到Route 53记录而不是URL - AWS CloudFormation template adding IP address to Route 53 record, not URL ssh 到 EC2 ubuntu 实例如何使用非公共 ip 地址? - How does ssh to EC2 ubuntu instance working with non public ip address?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM