Registry Tip #36: Disable Windows 2000 Dynamic DNS Registrations |
Hits: Failed to execute CGI : Win32 Error Code = 3
|
The DHCP Client service in W2K Pro and server performs dynamic DNS updates for adapters. The updates to DNS occur whether the adapter is configured by DHCP or is manually or statically configured.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: DisableDynamicUpdate
Type: REG_DWORD
Value:
1 Disable dynamic update registration
0 Enable dynamic update registration
DisableDynamicUpdate can only be set in the registry and the registry setting overrides the checkbox Register this connection's addresses in DNS found on the DNS tab of each network interface's TCP/IP advanced properties which is an individual adapter setting.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: DisableReverseAddressRegistrations
Type: REG_DWORD
Value:
1 Do not register PTR records
0 Register PTR records
DisableReverseAddressRegistrations disables DNS dynamic update registration of PTR records for the client. PTR records, pronounced pointer, associate an IP address with a computer name. This registry setting reduces unnecessary network traffic and eliminates event log errors that record unsuccessful attempts to register PTR records in environments where the primary DNS server that is authoritative for the reverse lookup zone cannot or is configured not to perform dynamic updates.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\interface-name
Name: DisableDynamicUpdate
Type: REG_DWORD
Value:
1 Disables dynamic update registration
0 Enables dynamic update registration
For an adapter to use dynamic update, dynamic update must be enabled at the system level and at the adapter level. Disable at the system level and this setting is ineffective. A potential gotcha! is the adapter and system settings are in conflict.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: DefaultRegistrationRefreshInterval
Type: REG_DWORD
Value: 0x0 - 0xFFFFFFFF seconds default=0x15180 (86,400 seconds = 24 hours)
This specifies the time interval between DNS dynamic update registration refreshes.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: DefaultRegistrationTTL
Type: REG_DWORD
Value: 0x0 - 0xFFFFFFFF seconds default=0x4B0 (1,200 seconds = 20 minutes)
DefaultRegistrationTTL specifies the default TTL value set in the header of outgoing DNS dynamic update registrations. The TTL value controls how long a packet that has not reached its destination can remain on the network before it is discarded. A small value for DefaultRegistrationTTL causes cached entries to expire sooner, which increases DNS traffic but decreases the risk of stale entries. Long retention times are useful for computers that renew their DHCP leases infrequently.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\interface-name\MaxNumberOfAddressesToRegister
Name: MaxNumberOfAddressesToRegister
Type: REG_DWORD
Value: 0x0 - 0xFFFFFFFF default=0x1
To prevent an address being registered for the adapter, set MaxNumberOfAddressesToRegister to 0.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: UpdateSecurityLevel
Type: REG_DWORD
Value:
0x0 Send secure dynamic updates only when non-secure dynamic updates are refused
0x10 Send only non-secure dynamic updates
0x100 Send only secure dynamic updates
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Name: DisableReplaceAddressesInConflicts
Type: REG_DWORD
Value:
0 The DNS client overwrites the existing hostname A record with an hostname A record for its own IP address.
1 The DNS client backs out of the registration process. No error is written to the Event Viewer log.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\DNS\Parameters
Name: PublishAddresses
Type: REG_SZ
This specifies the IP addresses you want to publish for the computer. The DNS server creates hostname A records only for the address in this list. If this entry does not appear in the registry, or if its value is blank, the DNS server creates an hostname A record for each of the computer's IP addresses. This entry is designed for computers with multiple IP addresses, when you prefer to publish only a subset of the available addresses. Typically, this 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. DNS 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 service.
To disable all registrations performed by Netlogon:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Netlogon\Parameters
Name: UseDynamicDns
Type: REG_DWORD
Value:
0 Netlogon does not use DNS dynamic updates. Records specified in the Netlogon.dns file must be registered manually in DNS
1 Netlogon uses DNS dynamic updates to register the names identifying this domain controller
You would consider disabling Netlogon's use of DNS dynamic updates if your DNS servers do not support DNS dynamic updates or to eliminate the network traffic associated with periodic registration of Net Logon's DNS records. This value is not effective unless you delete %SYSTEMROOT%\system32\config\netlogon.dnbyou and then restart the Netlogon service.
By default, Netlogon on a DC registers SRV, domain A, and GC ( Global Catalog ) A records every hour. SRV records are mapped to a FQDN and hostname A records are mapped to an IP address. Registration of domain A records for all adapters by Netlogon and subsequent re-registration every hour (by default) can be problematic if clients resolve the domain name to an unreachable IP address. The following registry key enables/disables the registration of hostname A records by Netlogon for a domain controller. The domain A records are not required by Windows 2000, but are registered for the benefit of LDAP implementations that do not support SRV records. Note that this registry key disables all hostname A record registrations performed by Netlogon, which includes the gc._msdcs.DnsForestName records. Registration of gc._msdcs.DnsForestName records is required and must be performed manually if the RegisterDnsARecords registry key is set to disabled.
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Netlogon\Parameters
Name: RegisterDnsARecords
Type: REG_DWORD
Value:
0 Does not register DNS A records. LDAP implementations that do not support SRV records will not be able to locate the LDAP server on this domain controller.
1 Registers DNS hostname A records
You might consider setting this value to 0 if DNS does not complete its dynamic updates because it cannot update hostname A records. DNS stops updating when an update attempt does not succeed.
To configure individual RAS connection settings, use Advanced TCP/IP properties checkbox.
Keywords: Windows 2000 Registry Tip,