No, itβs not possible to use βfixedβ IP addresses or DNS names using AWS instances out of the box. Even if you assign an EIP (Elastic IP) instance to the instance, this only affects the public IP / DNS link, not the internal one.
We use a couple of DNS servers in our EC2 repository (this is Windows, so they are primary / secondary domain controllers). Due to the fact that all other instances use this pair as their DNS servers, we can assign unique machine names for each instance as they are promoted and refer to any / all other instances of these names.
So, for example, our EC2-based Subversion server has EIP, which means it is always there when we talk to it from outside EC2, but the EC2-based CruiseControl server refers to it as [ourec2domain] .SVNHOST because it registers this name with domain controllers at startup.
source share