Score:0

What is the stable DNS name of an EC2 instance?

cn flag

Given an EC2 instance spun up in AWS, does AWS provide a stable, predictable, DNS name that resolves to both the public IPv4 and public IPv6 addresses of that instance?

If so, where can I find this name, and how do I turn this name on?

Stable means that name will not change if the instance is stopped. This rules out the classic IPv4 DNS names that contained the randomly assigned IPv4 address.

Public means not the IPv4 RFC1918 address assigned to the internal interface.

Route 53 exists, and I am aware that I can deploy Route 53 entries alongside an instance and have done so in the past, however I am talking about a DNS name provided by AWS under their own domain that does not require extra configuration over and above deploying an instance with parameters correctly set.

Is this possible?

vn flag
No. Give the instance an elastic IP and a DNS record pointing to that if you want this. [Cattle, not pets.](https://devops.stackexchange.com/questions/653/what-is-the-definition-of-cattle-not-pets)
Graham Leggett avatar
cn flag
@ceejayoz Elastic IP is IPv4 only, so alas doesn't answer the question in this case.
vn flag
"elastic network interfaces retain their IPv6 addresses throughout their lifetime" - https://docs.aws.amazon.com/whitepapers/latest/ipv6-on-aws/amazon-vpc-internet-access.html
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.