- 新しい順
- 投票が多い順
- コメントが多い順
To keep a particular static IP address, what you will need to do is Assign an Elastic IP Address to the EC2 instance. This is a fixed IPv4 address that you can reassign from one EC2 instance to another. This address stays persistent through instance stops and starts.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
Since you mentioned,
the DNS server is unable to resolve the name, possibly because the IP address it is looking for has changed.
I would recommend checking the Record entry for the DNS name in the hosted zone, if it's still using the old Public IP address then this could be the reason why the DNS resolution is failing.
If you are making use of Amazon Route 53, I would recommend checking the record details in Route 53 console and if outdated edit the A record to the new Public IP address [1].
Another recommendation would be to make use of of Elastic IP address to retain the Public IP address [2] which was assigned to the EC2 Instance. By doing so you would not be required to edit the record every time the EC2 reboots.
Reference:
Thank you @AWS_TAM. I appreciate you taking the time to respond.
This issue has now been resolved. In the end it wasn't an issue with a changed IP address, but an outdated version of AVG antivirus that was blocking various processes from occuring. Thanks.
関連するコンテンツ
- 質問済み 6年前
- AWS公式更新しました 4ヶ月前
Thank you @tedtrent. I appreciate you taking the time to respond.