windows - window server 中机器名的限制是什么?

标签 windows windows-server-2008

我需要将机器名称存储在数据库字段中,因此我需要知道该字段的大小。

那么机器名的长度有没有限制呢?

如果是这样,限制是多少?

我的机器名可以是 Unicode 吗?

最佳答案

这篇知识库文章说 FQDN 有 255 个字节,它确实支持 Unicode。

http://support.microsoft.com/kb/909264

DNS domain names

The maximum length of the host name and of the fully qualified domain name (FQDN) is 63 octets per label and 255 bytes per FQDN. This maximum includes 254 bytes for the FQDN and one byte for the ending dot.

In Windows 2000 and in Windows Server 2003, the maximum host name and the FQDN use the standard length limitations that are mentioned earlier, with the addition of UTF-8 (Unicode) support. Because some UTF-8 characters exceed one octet in length, you cannot determine the size by counting the characters.

关于windows - window server 中机器名的限制是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4097282/

相关文章:

windows - 尝试授予 IIS 7.5 中特定应用程序池标识的权限 - "object cannot be found"

c - 如何在Windows中确定文件是否存在、不存在或未知(使用c)

Windows 移动用户界面建议

c# - 为什么域用户获得 UnauthorizedAccessException 并授予 "Everyone"读写权限?

.net - 如何在Windows Server 2008 R2上安装ASP.net MVC 2?

azure - 一台服务器可以拥有的 IIS 应用程序池数量是否有限制?

windows - 使用 Wix 安装程序将快捷方式添加到开始菜单程序中的子文件夹

ios - 从 Windows 向 iOS 提供地理位置数据

java - 如何在 java 中的 Windows 启动时启动我的应用程序

php - 使用 Windows Server 2008 计划任务执行 PHP 文件