服务器IP更改 - 使用计算机名称指向服务器是否可取? [英] Server IP Change - Is using Computer Name to point to server advisable?

查看:437
本文介绍了服务器IP更改 - 使用计算机名称指向服务器是否可取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序的DB服务器的IP正在更改。所有其他设置,配置等。 计算机名称将保持不变。
(数据库服务器的操作系统是Microsoft Windows Server 2003,数据库是Microsoft SQL Server 2005.应用程序是基于.NET 2.0的。)

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.)

它需要内联网应用程序,指向该服务器的网站需要使用尚未知的新IP来引用。问题是改用新的IP需要大量的时间和时间。客户无法承受超过几个小时的停机时间。

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.

我了解到,除了使用IP指向服务器外,还可以使用计算机名称。在我们的例子中,计算机名称将保持不变。

I learnt that apart from pointing to server using IP, "Computer Name" can also be used. In our case, "Computer Name" will remain same.

建议使用计算机名称进行指向?请建议任何其他替代方案。

推荐答案

正是出于您所描述的原因,硬编码IP除非绝对必要不是最好的做法。更新DNS很容易通过每个服务器和配置文件,希望你记住所有这些都不是!

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!

这篇关于服务器IP更改 - 使用计算机名称指向服务器是否可取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆