Suppose you need to move your database(s) from one physical server to another and at the same time you must use another IP address for the new server. Now each application that connects to the database must change the IP address in their configuration file or worst case in their programs. This would not be an effective way to spread goodwill and cheer no matter what time of year it occurred.
Well not being a network guy, but having had my websites hosted by companies that are on top of things I have never had to change my IP address even though my database was moved from one physical server to another. You might be asking yourself, “What kind of magic was involved?” Well I am glad you asked.
Let’s say that you have a single SQL Server instance running on a server by the name of “fred” at IP 174.131.235.123 within your company whose name is Acme Road Kill. Let’s say your company website is acmeroadkill.com and it is resident on a server whose IP address is 174.131.235.122.
Now if you create a DNS A (address) record for fred.acmeroadkill.com with an associated IP address of 174.131.235.123 you may then connect to SQL Server replacing the IP address with the name fred.acmeroadkill.com. With this change in place you can move the database from one IP address to another and the only change needed would be to the DNS record. No configuration files would need to be changed and no software needs to be changed.
With the above knowledge as background let’s create a more needful case. Suppose you are new to virtual private servers (VPS) and/or new to dedicated servers and your boss says that you are now responsible for hosting multiple web sites and multiple instances of SQL Server on multiple physical or virtual servers.
In this scenario, you are still working at Acme Road Kill, but you have two SQL Server instances on two separate physical or virtual servers named fred and barney. Fred and barney have the IP addresses 174.131.235.123 and 174.131.235.124 respectively. Now you define two DNS A records as follows:
fred.acmeroadkill.com with IP address 174.131.235.123 and
barney.acmeroadkill.com with IP address 174.131.235.124
Now either instance can be accessed with their symbolic names rather than their IP addresses. If you have questions or feedback please let me hear from you.