Ok I have an instance (let's call it instance-1) with its public dns (let's call it ec2-A-B-C-D.compute-1.amazonaws.com) and another instance called instance-2 (public-dns : ec2-E-F-G-H)
I created an elastic ip (ip-50-X-Y-Z)
When I associate the elastic ip to the instance . The instance public dns changed to ec2-50-X-Y-Z which first of all I think it's weird.
Even weirder, If I deassociate instance-1 and associate instance-2 to my elastic-ip then :
instance-2 public dns changed to ec2-50-X-Y-Z) and instance-1 get a new public dns.
Since I am using usually using the public-dns to connect to my instance via ssh this is really messing up my ~/.ss/know_hosts file.
Is this the normal behavior of elastic ips or there is something messed up in my setup?