Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon EC2 public ipv6 address

As Apple starts rejecting applications which are not able to communicate in ipv6 only network, it is required to also have a public ipv6 address for my web service which uses TCP and UDP.

The web service is hosted in Amazon EC2 VPC, I have followed instructions on Amazon docs to enable ipv6 routing in VPC. But I don't have any public domain or static-ipv6 to connect to EC2 instance.

After searching I came to know about route53 service which can register a domain and point it to some ipv6 / ipv4. Is the correct solution? Can a single domain map to both ipv4 & ipv6? for example, mywebservice.amazon-ec2.com points to same ec2 instance having ipv4 and ipv6.

Will requesting the mywebservice.amazon-ec2.com from ipv6 only network work?

If I misunderstood something please help.

like image 824
Yash Kansagara Avatar asked Feb 08 '17 06:02

Yash Kansagara


1 Answers

You are correct.

You can create a two Record Sets in Amazon Route 53:

  • One A record pointing to the IPv4 address
  • One AAAA record pointing to the IPv6 address

For the IPv4 address, first allocate an Elastic IP Address to the instance because it is a static address that will not change when the instance is stopped/started. Then, point the A record to the Elastic IP Address.

There is no Elastic IP Address available for IPv6. Instead, just point to the instance's normal IPv6 address, which will always stay the same for that instance.

You don't actually need to use Amazon Route 53 -- any DNS service will provide the same functionality.

See Amazon Route 53 documentation: Values for Basic Resource Record Sets

like image 122
John Rotenstein Avatar answered Sep 19 '22 04:09

John Rotenstein