|
Managed Deployment Script
The following sample registry script can be used to enable this registry setting:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters]
"RpcProtocol"=dword:00000004
The above registry script can be saved to a file with a .REG file extension and can be deployed silently as part of an automated deployment script using regedit.exe using the /s command line switch.
The DNS service needs to be restarted for this change to take effect.
For help using regedit.exe to deploy registry scripts please refer to Microsoft Knowledge Base Article Q82821: Registration Info Editor (REGEDIT) Command-Line Switches.
How to undo workaround: To undo the workaround perform the following steps:
|
1. |
On the start menu click 'Run' and then type 'Regedit' and then press enter. |
|
2. |
Navigate to the following registry location: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\Parameters” |
|
3. |
Select Registry Key RpcProtocol. |
|
4. |
Right click on the RpcProtocol Key and select Delete. |
|
5. |
Restart the DNS service for the change to take effect. |
|
6. |
On the start menu click 'Run' and then type 'Regedit' and then press enter. |
|
7. |
Navigate to the following registry location: |
RpcProtocol registry key values
The value ‘4’ being used above restricts the DNS RPC interface to LPC-only. Combine values from the table below to change the transport mechanisms allowed set to the RpcProtocol key.
| • |
#define DNS_RPC_USE_TCPIP0x1 |
| • |
#define DNS_RPC_USE_NAMED_PIPE0x2 |
| • |
#define DNS_RPC_USE_LPC0x4 |
You can re-configure the DNS server’s management interface to accept only LPC by setting a value in the registry Other registry values will modify or disable RPC communication differently. For more information on the RpcProtocol registry key please see the following TechNet article. Setting the value to 4 will mitigate a remote attempt to exploit the vulnerability. Setting the value to 0 will disable all DNS RPC functionality and will protect against both local and remote attempts to exploit the vulnerability.
Impact of Workaround: Setting the registry value to 4 will disable remote management and configuration of DNS server functionality using RPC or WMI will be disabled. DNS management tools, will fail to work remotely. Local management and remote management through terminal services can be still used to manage your DNS Server configuration.
You will still be able to use the DNS management MMC Snap-in, DNSCMD.exe, and the DNS WMI provider.
Setting the registry value to 0 will disable all DNS RPC management capability including local administration and configuration
DNS Server local administration and configuration may not work if the server being managed has a computer name of 15 characters or longer and is selected by its computer name. To avoid this issue, use the Fully Qualified Domain Name (FQDN) of the computer being managed in the DNS administration tools. |