问题
IP of the DB Server of our application is being changed. All other settings, configurations etc. incl. "Computer Name" will remain same. (DB server's OS is Microsoft Windows Server 2003, DB is Microsoft SQL Server 2005. Applications are .NET 2.0 based.)
It requires that intranet applications, websites pointing to that server need to be referred using new IP which is not yet known. The problem is that changing to a new IP will require significant time & client cannot afford down time of more than a few hours.
I learnt that apart from pointing to server using IP, "Computer Name" can also be used. In our case, "Computer Name" will remain same.
Is it advisable to point using "Computer Name"? Please suggest any other alternatives as well.
回答1:
For exactly the reasons you describe, hardcoding IP's unless absolutely neccessary is not best practice. Updating DNS is easy going through every server and config file hoping you remember all of them is not!
来源:https://stackoverflow.com/questions/24796532/server-ip-change-is-using-computer-name-to-point-to-server-advisable