2

When I spin up a machine in us-west-2 and give it an elastic IP, it gets a public DNS hostname like

ec2-XXX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com

When I spin up a machine in us-east-1 and give it an elastic IP, it gets a public DNS hostname like

ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com

Why the difference?

When I reassociate an elastic IP, will the public DNS hostname be the same?

Adam Monsen
  • 695
  • 1
  • 7
  • 21

2 Answers2

2

Well if you wonder for such a details, the difference is because European datacentre was established after the US one, so the Europe got the sub-domain, while the US kept the original short version to preserve the backwards compatibility and increase stability of already deployed services.

Andrew Smith
  • 1,123
  • 13
  • 23
2

Elastic ips' public DNS hostname always stays the same. When you associate an elastic ip to instance, the instance's public DNS hostname changes.

smaftoul
  • 211
  • 1
  • 4