It is
usually (but not always) better to keep to a single A record for an IP address with a matching PTR record so the IP address can be used to find out the host. Other things, such as service names or alternate domain entries can be added as CNAME or alias records. If you have a service that other things connect to and use that has a logical name, then it is
usual to define that as an alias. When you come to replace your servers, if the applications all use a CNAME/alias then you can edit the DNS to move the alias to point to the new server when you are happy that it is ready.
Additionally, if you have a cluster of servers, you might consider more things. For an Active/Passive cluster, you would have an A record for each server, but make every connection to the application(s) to use a separate IP address that you move to the active server, a virtual IP if you like. Consider:-
- ServerA: 10.10.10.1 with PTR of 10.10.10.1 to ServerA
- ServerB: 10.10.10.2 with PTR of 10.10.10.2 to ServerB
- ServerC: 10.10.10.3 with PTR of 10.10.10.3 to ServerC
- Myapp: 10.10.10.101 with no PTR record
Make the 'active' server also offer the
Myapp IP address and make connections point to service name
Myapp
For an Active/Active cluster, you need some sort of load-balancer, but that's a whole extra topic.
What do you actually want to do with the applications offered by the server and how would you consider transferring them to a replacement later?
Robin