Article ID: 909264 - Last Review: July 21, 2011 - Revision: 9.0 Naming conventions in Active Directory for computers, domains, sites, and OUs
On This PageINTRODUCTIONThis article describes the naming conventions for computer accounts in Microsoft Windows, NetBIOS domain names, DNS domain names, Active Directory sites, and organizational units (OUs) that are defined in the Active Directory directory service. The topics that are discussed include the valid characters for names, the minimum and maximum name lengths, reserved names, names that we do not recommend, and general recommendations that are based on supporting Active Directory in small, medium, and large deployments. All objects that are named within Active Directory or within AD/AM and LDS are subject to name matching based on the algorithm that is described in the following Microsoft Knowledge Base article: 938447
(http://support.microsoft.com/kb/938447/
)
You cannot add a user name or an object name that only differs by a character with a diacritic mark
In that article, this naming convention applies to Computer, OU, and site names.Computer namesNetBIOS computer namesAllowed charactersNetBIOS computer names can contain all alphanumeric characters except for the extended characters that are listed in the "Disallowed characters" section. Names can contain a period, but names cannot start with a period.Disallowed charactersNetBIOS computer names cannot contain the following characters:
In Windows 2000 and in later versions of Windows, computers that are members of an Active Directory domain cannot have names that are composed completely of numbers. This restriction is because of DNS restrictions. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 244412
(http://support.microsoft.com/kb/244412/
)
Windows 2000 does not permit all-numeric computer names
Minimum name length1 character.Maximum name length15 characters.Note The 16th character is reserved to identify the functionality that is installed on the registered network device. Reserved namesSee "Table of reserved words."Special charactersPeriod (.).A period character separates the name into a NetBIOS scope identifier and the computer name. The NetBIOS scope identifier is an optional string of characters that identify logical NetBIOS networks that run on the same physical TCP/IP network. For NetBIOS to work between computers, the computers must have the same NetBIOS scope identifier and unique computer names. Warning The use of NetBIOS scopes in names is a legacy configuration and should not be used with Active Directory forests. For more information about NetBIOS scopes, visit the following non-Microsoft Web sites: http://www.ietf.org/rfc/rfc1001.txt
(http://www.ietf.org/rfc/rfc1001.txt)
http://www.ietf.org/rfc/rfc1002.txt (http://www.ietf.org/rfc/rfc1002.txt) DNS computer namesAllowed charactersDNS computer names can contain only alphabetical characters (A-Z), numeric characters (0-9), the minus sign (-), and the period (.). Period characters are allowed only when they are used to delimit the components of domain style names.In the Windows 2000 domain name system (DNS) and in the Microsoft Windows Server 2003 DNS, the use of Unicode characters is supported. Other implementations of DNS do not support Unicode characters. Avoid Unicode characters if queries will be passed to the servers that use non-Microsoft implementations of DNS. For more information, visit the following non-Microsoft Web sites: http://www.ietf.org/rfc/rfc952.txt
(http://www.ietf.org/rfc/rfc952.txt)
http://www.ietf.org/rfc/rfc1123.txt (http://www.ietf.org/rfc/rfc1123.txt) Disallowed charactersDNS host names cannot contain the following characters:
The DNS host name cannot contain blank or space characters. No distinction is made between upper and lowercase. The first character must be alphabetical or numeric. The last character must not be a minus sign or a period. In Windows 2000 and in later versions of Windows, computers that are members of an Active Directory domain cannot have names that are composed completely of numbers. This restriction is because of DNS restrictions. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 244412
(http://support.microsoft.com/kb/244412/
)
Windows 2000 does not permit all-numeric computer names
Note DNS Host Name Registration substitutes a hyphen (-) character for invalid characters. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 149044
(http://support.microsoft.com/kb/149044/
)
DNS Host Name substitutes "-" for invalid characters Minimum name length2 characters.Maximum name length24 characters.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. Domain controllers must have an FQDN of less than 155 bytes. Reserved names per RFC
Reserved names in WindowsSee "Table of reserved words."Best practicesWhen you create names for the DNS computers in a new Windows Server 2003 DNS infrastructure, use the following guidelines:
Domain namesNetBIOS domain namesAllowed charactersNetBIOS domain names can contain all alphanumeric characters except for the extended characters that are listed in the "Disallowed characters" section. Names can contain a period, but names cannot start with a period.Disallowed charactersNetBIOS computer names cannot contain the following characters:
In Windows 2000 and in later versions of Windows, computers that are members of an Active Directory domain cannot have names that are composed completely of numbers. This restriction is because of DNS restrictions. Minimum name length1 character.Maximum name length15 characters.Note The 16th character is reserved to identify the functionality that is installed on the registered network device. Reserved names in WindowsSee "Table of reserved words."The names of an upgraded domain can include a reserved word. However, trust relationships with other domains fail when this is true. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 836182
(http://support.microsoft.com/kb/836182/
)
You cannot establish a trust relationship to another Windows 2000 domain in Windows 2000 Server if the domain is named "Internet"
Special charactersPeriod (.).A period character separates the name into a NetBIOS scope identifier and the computer name. The NetBIOS scope identifier is an optional string of characters that identify logical NetBIOS networks that run on the same physical TCP/IP network. For NetBIOS to work between computers, the computers must have the same NetBIOS scope identifier and unique computer names. Warning The use of NetBIOS scopes in names is a legacy configuration and should not be used with Active Directory forests. DNS domain namesAllowed charactersDNS host names can contain only alphabetical characters (A-Z), numeric characters (0-9), the minus sign (-), and the period (.). Period characters are allowed only when they are used to delimit the components of domain style names.In the Windows 2000 domain name system (DNS) and in the Microsoft Windows Server 2003 DNS, the use of Unicode characters is supported. Other implementations of DNS do not support Unicode characters. Avoid Unicode characters if queries will be passed to the servers that use non-Microsoft implementations of DNS. For more information, visit the following non-Microsoft Web sites: http://www.ietf.org/rfc/rfc952.txt
(http://www.ietf.org/rfc/rfc952.txt)
http://www.ietf.org/rfc/rfc1123.txt (http://www.ietf.org/rfc/rfc1123.txt) Disallowed charactersDNS host names cannot contain the following characters:
The DNS host name cannot contain blank or space characters. No distinction is made between upper and lowercase. The first character must be alphabetical or numeric. The last character must not be a minus sign or a period. Minimum name length2 characters.Maximum name length24 characters.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. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 245809
(http://support.microsoft.com/kb/245809/
)
Windows 2000 supports fully qualified domain names up to 64 UTF-8 bytes long
Single-label domain namespacesSingle-label DNS names are names that do not contain a suffix such as .com, .corp, .net, .org or companyname. For example, "host" is a single-label DNS name. Most Internet registrars do not allow the registration of single-label DNS names.Generally, we recommend that you register DNS names for internal and external namespaces with an Internet registrar. This includes the DNS names of Active Directory domains, unless such names are subdomains of DNS names that are registered by your organization name. For example, "corp.example.com" is a subdomain of "example.com." Registering your DNS name with an Internet registrar may help prevent a name collision. A name collision may occur if another organization tries to register the same DNS name or if your organization merges with another organization that uses the same DNS name. Problems that are associated with single-label namespaces include the following:
285983
(http://support.microsoft.com/kb/285983/
)
Considerations for designing namespaces in a Windows 2000-based domain
300684
(http://support.microsoft.com/kb/300684/
)
Information about configuring Windows for domains with single-label
DNS
For more information regarding single label domains, visit the following Microsoft web site: Microsoft DNS Namespace Planning Solution Center
(http://support.microsoft.com/gp/gp_namespace_master#tab4)
Disjointed namespaces Definition of a disjointed namespace A disjointed namespace occurs when a computer's primary DNS suffix does not match the DNS domain of which it is a member. For example, a disjointed namespace occurs when a machine that has the DNS name of dc1.contosocorp.com is in a domain that has the DNS name of contoso.com. How disjointed namespaces occur
Suppose a domain controller named DC1 resides in a Windows NT 4.0 domain whose NetBIOS domain name is contoso. This domain controller is upgraded to Windows 2000. When this upgrade occurs, the DNS domain is renamed contoso.com. In the original release version of Windows 2000, the upgrade routine clears the check box that links the primary DNS suffix of the domain controller to its DNS domain name. Therefore, the primary DNS suffix of the domain controller is the DNS suffix that was defined in the Windows NT 4.0 suffix search list. In this example, the DNS name is DC1.northamerica.contoso.com. The domain controller dynamically registers its service location (SRV) records in the DNS zone that corresponds to its DNS domain name. However, the domain controller registers its host records in the DNS zone that corresponds to its primary DNS suffix. Note Host records are also known as "A records" or "glue records." When you intentionally create a disjointed namespace, configure forwarders or delegations in the DNS zones. Configure these forwarders or delegations between both forward lookup zones so that the host records can be located. For example, configure forwarders between the contoso.com and northamerica.contoso.com. If a disjointed namespace is created unintentionally, if no forwarders are configured, and if the DNS zones are created by the Active Directory Installation Wizard, no zone is created for the primary DNS suffix zone. When this configuration requirement is not satisfied, clients cannot resolve DNS requests for services to the IP addresses of the domain controllers that provide these services. In this scenario, AD replication and other operations experience a DNS lookup error. These operations fail because the SRV record request points to a host record that does not exist in the zone. Or, these operations fail because the host record is in a zone that cannot be reached through a forwarder. Preventing disjointed namespace problems When a Windows NT 4.0 primary domain controller is upgraded to the original release version of Windows 2000, the Change primary DNS suffix when domain membership changes check box is unchecked. This problem was corrected in Windows 2000 Service Pack 1. To work around this problem, use one of the following methods:
Best practices
285983
(http://support.microsoft.com/kb/285983/
)
Considerations for designing namespaces in a Windows 2000-based domain
262376
(http://support.microsoft.com/kb/262376/
)
Computer name does not match the Windows 2000 domain name after upgrade
257623
(http://support.microsoft.com/kb/257623/
)
The DNS suffix of the computer name of a new domain controller may not match the name of the domain after you upgrade a Windows NT 4.0 primary domain controller to Windows 2000
292541
(http://support.microsoft.com/kb/292541/
)
How to rename the DNS name of a Windows 2000 domain
296592
(http://support.microsoft.com/kb/296592/
)
How to rename a Windows 2000 domain controller
Reserved namesSee "Table of reserved words."Do not use top-level Internet domain names on the intranet. Top-level Internet domain names include .com, .net, .org, .us, .fr, and .gr. If you use top-level Internet domain names on the intranet, computers on the intranet that are also connected to the Internet may experience resolution errors. Other factorsForests that are connected to the InternetA DNS namespace that is connected to the Internet must be a subdomain of a top-level or second-level domain of the Internet DNS namespace.Maximum number of domains in a forestIn Windows 2000, the maximum number of domains in a forest is 800. In Windows Server 2003, the maximum number of domains at Forest Functional Level 2 is 1200. This restriction is a limitation of multivalued non-linked attributes in Windows Server 2003.Best practices
Site namesWe recommend that you use a valid DNS name when you create a new site name. Otherwise, your site will be available only where a Microsoft DNS server is used. For more information about valid DNS names, see the "DNS computer names" section.Allowed charactersDNS host names can contain only alphabetical characters (A-Z), numeric characters (0-9), the minus sign (-), and the period (.). Period characters are allowed only when they are used to delimit the components of domain style names.In the Windows 2000 domain name system (DNS) and in the Microsoft Windows Server 2003 DNS, the use of Unicode characters is supported. Other implementations of DNS do not support Unicode characters. Avoid Unicode characters if queries will be passed to the servers that use non-Microsoft implementations of DNS. For more information, visit the following non-Microsoft Web sites: http://www.ietf.org/rfc/rfc952.txt
(http://www.ietf.org/rfc/rfc952.txt)
http://www.ietf.org/rfc/rfc1123.txt (http://www.ietf.org/rfc/rfc1123.txt) Disallowed charactersDNS host names cannot contain the following characters:
The DNS host name cannot contain blank or space characters. No distinction is made between upper and lowercase. The first character must be alphabetical or numeric. The last character must not be a minus sign or a period. Minimum name length1 character.Maximum name length24 characters.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. For more information on fully qualified domain name character limits, see MSKB article 245809 (245809 Windows 2000 Supports Fully Qualified Domain Names up to 64 UTF-8 Bytes Long) OU namesAllowed charactersAll characters are allowed, even extended characters. However, although Active Directory Users and Computers lets you name an OU with extended characters, we recommend that you use names that describe the purpose of the OU and that are short enough to easily manage. Lightweight Directory Access Protocol (LDAP) does not have any restrictions, because the CN of the object is put in quotation marks.For more information, click the following article number to view the article in the Microsoft Knowledge Base: 886689
(http://support.microsoft.com/kb/886689/
)
The Ntdsutil authoritative restore operation is not successful if the distinguished name path contains extended characters in Windows Server 2003 and in Windows 2000
Disallowed charactersNo characters are not allowed.Minimum name length1 character.Maximum name length64 characters.Special issuesWhen the OU has the same name as another object in the forest, a name collision may sometimes occur. We recommend that you do not give an OU the same name as another object in the forest.For example, consider a scenario where the OU has the same name as other objects in the forest. An OU in the parent domain has the same name as the NetBIOS name of a child domain. The OU is deleted during the tombstone lifetime of the OU. Then, a child domain that has the same name is created, deleted, and created again. In this scenario, a duplicate object in the Jet database causes a phantom-phantom name collision when the child domain is re-created. This problem prevents the configuration container from replicating. Table of reserved wordsCollapse this table
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |





















Back to the top