Server IP Change - Is using Computer Name to point to server advisable?

谁都会走 提交于 2019-12-25 02:55:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!