Article ID: 813964 - Last Review: October 30, 2006 - Revision: 2.1 Description of DNS registry entries in Windows 2000 Server, part 2 of 3Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/
)
Description of the Microsoft Windows Registry On This PageSUMMARYThis article is part 2 of 3 articles that describe registry entries that affect the behavior of DNS in Microsoft Windows 2000 Server. Additionally, these articles describe different tools that you can use to configure DNS registry entries. The DNS registry entry descriptions are listed by name, and these descriptions include the DNS registry entry change method and the start method. The tools that are described in these articles are Registry Editor, the Dnscmd.exe command-line tool, and the DNS console. INTRODUCTIONThis article is the first of three articles that describe DNS registry entries in Windows 2000 Server. For additional information about the other two articles in this series of three articles, click the following article numbers to view the articles in the Microsoft Knowledge Base: 813963
(http://support.microsoft.com/kb/813963/
)
Description of DNS registry entries in Windows 2000 Server, part 1 of 3
813965
(http://support.microsoft.com/kb/813965/
)
Description of DNS registry entries in Windows 2000 Server, part 3 of 3
MORE INFORMATIONWarning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Configuration toolsYou can use the following three tools to configure DNS registry entries:
Registry EditorSome DNS registry entries can only be modified by using Registry Editor. To create DNS registry entries, follow these steps:
Dnscmd.exeYou can use the Dnscmd.exe command-line tool to perform most of the tasks that you can perform by using the DNS console. For example, you can use the Dnscmd.exe command-line tool to perform the following tasks:
The DNS consoleYou can use the DNS console to configure many DNS settings. To start the DNS console, click Start, point to Programs, point to Administrative Tools, and then click DNS.DNS server entriesThe following registry entries (along with the entries that are described in part 2 and part 3) determine the behavior of the whole DNS server. Each of these registry entries is located under the following registry subkey:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters Note These registry entries are read-only when the computer starts. Some registry entries can
be reset. Therefore, the server behavior is occasionally changed dynamically through
the DNS Administrator. However, if you manually reset a registry entry, you must restart the DNS server to process the entry's new value. ListenAddressesType: REG_BINARY You can use the ListenAddresses registry entry to list the IP addresses that are bound to the DNS server. If the ListenAddresses entry does not appear in the registry or its value contains no IP addresses, the DNS server tries to bind to all IP addresses on the computer.
Default value: Blank Function: Lists the Internet Protocol (IP) addresses that are bound to the DNS server. Change methodTo change the value of the ListenAddresses entry, start the DNS console, right-click a server name, click Properties, and then click the Interfaces tab. You can also use Dnscmd.exe. Your changes are effective immediately so that you do not have to restart the DNS server.Start methodDNS reads its registry entries only when it starts. You can change entries while the DNS server is running by using the DNS console. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note the following items:
LocalNetPriorityType: DWORD You can use this registry entry to specify the order that the DNS server returns A records when it has multiple A records for the same name.
Default value: 1 Function: Determine the order that a DNS server returns address (A) records when it has multiple A records for the same name. Valid LocalNetPriority entriesCollapse this table
Change methodTo change the value of the LocalNetPriority entry, use the DNS console. Right-click the server name, click Properties, and then click the Advanced tab. This entry corresponds to the Enable Netmask Ordering option. You can also use Dnscmd.exe. With either method, the changes are effective immediately so that you do not have to restart the DNS server.Start methodDNS reads its registry entries only when it starts. You can change entries while the DNS server is running by using the DNS console or Dnscmd.exe. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note Windows 2000 does not add the LocalNetPriority entry to the registry. You can add it by editing the registry or by using a program that edits the registry. LogFileMaxSizeType: DWORD You can use the LogFileMaxSize registry entry to specify the maximum permissible size of the DNS transaction log, Dns.log. When the log reaches the specified maximum size, DNS writes over the oldest transactions.
Default value: 0x400000 (4 MB) Function: Set the maximum size of the DNS log. Start methodDNS reads its registry entries only when it starts. Changes are not effective until you restart the DNS server.Note the following items:
LogFilePathType: DWORD You can use the LogFilePath registry entry to specify the file name and location of the DNS transaction log file (Dns.log).
Default value: %SystemRoot%\System32\dns\dns.log Function: Specifies the file name and location of the DNS transaction log. If you change the value of the LogFilePath entry, DNS creates new log files in the specified folder, but it does not move existing log files to the new location. Also, DNS does not delete or maintain log files in the original location. Start methodDNS reads its registry entries only when it starts. Changes are not effective until you restart the DNS server.Note the following items:
LogLevelType: DWORD Directs the Kerberos authentication protocol to record an informational event in the system log in Event Viewer when it receives a request for a service ticket.Default value: 0 Function: Determines if the Kerberos authentication protocol records an event in the See Comment when it receives a service ticket request. Valid LogLevel entriesCollapse this table
LooseWildcardingType: DWORD (Boolean) You can use the LooseWildcarding registry entry to specify if the DNS server uses loose wildcarding, as it does in Windows NT 4.0. This method does not strictly comply with standards for using the wildcard character in resource records that is specified by Request for Comment (RFC) 1034, "Domain names—concepts and facilities."
Default value: 0 Function: Set server to perform wildcarding loosely. Valid LooseWildcarding entriesCollapse this table
Start methodDNS reads its registry entries only when it starts. If you change the value of the LooseWildcarding entry by editing the registry, the changes are not effective until you restart the DNS server.Note the following items:
MaxCacheTtlType: DWORD You can use the MaxCacheTtl registry entry to specify how long the DNS server can save a record of a recursive name query.
Default value: 0x15180 (86,400 seconds = 1 day) Function: Determines how long the DNS server can save a record of a recursive name query. If the value of the MaxCacheTtl entry is 0x0, the DNS server does not save any records. The DNS server saves the records of recursive name queries in a memory cache so that it can respond quickly to new queries for the same name. Records are deleted from the cache periodically to keep the cache content current. The interval when the records remain in the cache typically is determined by the value of the Time to Live (TTL) field in the record. The MaxCacheTtl entry establishes the maximum time that records can remain in the cache. The DNS server deletes records from the cache when the value of this entry expires, even if the value of the TTL field in the record is greater. Change methodTo change the value of the MaxCacheTtl entry, use Dnscmd.exe, a tool that is included with the Windows 2000 Support Tools. The change is effective immediately so that you do not have to restart the DNS server.Start methodDNS reads its registry entries only when it starts. If you change the value of the MaxCacheTtl entry by editing the registry, the changes are not effective until you restart the DNS server.Note the following items:
NameCheckFlagType: DWORD (Boolean) You can use the NameCheckFlag registry entry to specify the character standard that is applied to DNS names. The standard determines the characters that are permitted and the characters that are prohibited in DNS names .
Default value: NoKey (Do not write unnecessary NS records) Function: Specifies the character standard is applied to DNS names. Valid NameCheckFlag entriesCollapse this table
Change methodTo change the value of the NameCheckFlag entry, use the DNS console. Right-click a DNS server, click Properties, click the Advanced tab, and then click the encoding format you want to use in the Name checking box. You can also use Dnscmd.exe. Changes are effective immediately so that you do not have to restart the DNS server.Start methodDNS reads its registry entries only when it starts. You can change entries while the DNS server is running by using the DNS console or Dnscmd.exe. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note Windows 2000 does not add the NameCheckFlag entry to the registry. You can add it by editing the registry or by using a program that edits the registry. NoRecursionType: DWORD (Boolean) You can use the NoRecursion registry entry to specify if the DNS server performs recursive resolution to comply with the RecursionDesired bit in the DNS name query packet header. Recursion occurs only when the value of the NoRecursion entry is 0 and the RecursionDesired bit is set.
Default value: 0 Function: Write NS records to the authority section on a successful response. Valid NoRecursion entriesCollapse this table
Change methodTo change the value of the NoRecursion entry, use the DNS console. Right-click the server name, click Properties, and then click the Advanced tab. This entry corresponds to the Disable Recursion option. You can also use Dnscmd.exe. Changes are effective immediately so that you do not have to restart the DNS server.Note Do not change the value of the NoRecursion entry by editing the registry. Start methodDNS reads its registry entries only when it starts. You can change entries while the DNS server is running by using the DNS console or Dnscmd.exe. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note the following items:
PreviousLocalHostnameType: REG_SZ You can use the PreviousLocalHostname registry entry to store the FQDN of the local computer. When the computer name or the primary DNS suffix changes, the DNS server uses the previous name to update resource records on primary, Active Directory–integrated zones.
Default value: Fully qualified domain name (FQDN) of the local computer Function: Stores the FQDN of the local computer. The DNS server copies the name of the local computer that is stored in the Hostname entry and the primary DNS suffix that is stored in the PrimaryDnsSuffix entry to the value of the PreviousLocalHostname entry. If the computer name or primary DNS suffix changes, the DNS server searches Start of Authority (SOA), name server (NS), and A resource records for the value of the PreviousLocalHostname entry, and it replaces each instance with the new computer name. Then, it copies the new value of Hostname and PrimaryDnsSuffix to the value of the PreviousLocalHostname entry for future changes. Start methodDNS reads its registry entries only when it starts. If you change the value of the PreviousLocalHostname entry by editing the registry, the changes are not effective until you restart the DNS server.Note The DNS server updates resource records according to the standards that are set for the zone and that are stored in the AutoConfigFileZones entry. PublishAddressesType: REG_SZ You can use the PublishAddresses registry entry to specify the IP addresses that you want to publish for the computer. The DNS server creates A records only for the addresses in this list.
Default value: blank Function: Specifies the IP addresses that you want to publish for the computer. If the PublishAddresses entry does not appear in the registry or if its value is blank, the DNS server creates an A record for each computer's IP addresses. The PublishAddresses entry is designed for computers with multiple IP addresses, where you want to publish only a subset of the available addresses. Typically, this process is used to prevent the DNS server from returning a private network address in response to a query when the computer has a corporate network address. Start methodDNS reads its registry entries only when it starts. You can change entries while the DNS server is running by using the DNS console. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note Windows 2000 does not add the PublishAddresses entry to the registry. You can add it by editing the registry or by using a program that edits the registry. PublishAutonetType: DWORD You can use the PublishAutonet registry entry to specify if the DNS server builds A records for temporary IP addresses that are produced by Automatic Private IP Addressing (APIPA). The PublishAutonet entry applies only when the DNS server is building A records for the computer where it is running.
Default value: 0 Function: Write NS records to the authority section on a successful response. APIPA is designed for computers on single-subnet networks that do not include a Dynamic Host Configuration Protocol (DHCP) server. APIPA automatically assigns an IP address from its reserved range, 169.254.0.01 through 169-254.255.254. These APIPA IP addresses are generally known as autonet addresses, and are used only until the system finds a DHCP server. APIPA addresses cannot be used on the Internet. Valid PublishAutonet entriesCollapse this table
Start methodDNS reads its registry entries only when it starts. If you change entries by editing the registry, the changes are not effective until you restart the DNS server.Note Windows 2000 does not add the PublishAutonet entry to the registry. You can add it by editing the registry or by using a program that edits the registry.
| Article Translations
|
Back to the top
