This article describes how to configure the DHCP Client service to request additional DHCP options (for example, option 11 [Resource Server]) and describes some differences between Windows NT 4.0 and Windows 2000.
All of the Windows DHCP client computers that are referenced in this article support the following DHCP options by default:
Collapse this tableExpand this table
| Code || Description|
|015||DNS Domain Name|
|046||NetBIOS Node Type|
In addition, Windows 2000 supports option 31 (Perform Router Discovery) and option 33 (Static Route).
Windows NT 4.0Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
In Windows NT 4.0, the DHCP options are stored in the following registry key:
You can add a new key for the DHCP option that you want to request from
the DHCP server. Options that are supported by the DHCP server are defined in Request for Comments (RFC) 1533. For example, if you want to request the Internet protocol (IP) address for a resource server, you must add DHCP option 11. To do so:
- Start Registry Editor (Regedt32.exe).
- Locate and click the following registry key:
- Click Add Key on the Edit menu, and then add the following registry key:
Key Name: 11
Class: (Do not enter a name here)
- Click the new key in Registry Editor, click Add Value on the Edit menu, and then add the following registry value:
Value Name: KeyType NOTE: The Value for KeyType determines the Data Type for the new Key. The Value 0x3 will create a REG_BINARY Data Type, which is the best for getting the raw data.
Data Type: REG_DWORD
- Click Add Value on the Edit menu, and then add the following registry value:
Value Name : RegLocationNOTE: In the Data box, type the
registry key where you want to store the option data. For example,
you want to store the data in the following registry key:
Data Type : REG_SZ
In this case, type the following string in the Data box:
- Quit Registry Editor, and then restart the computer.
: The client requests the option from the DHCP server and
enters it as a hexadecimal value in the registry key that you typed in the Data
box. If you
want to convert the data, you must create your own logic to do so.
The DHCP Client service in Windows 2000 has been updated from
Windows NT 4.0. Windows 2000 clients must make a DhcpRequestParams
API call to request custom parameters. The DHCP client stores
data that is obtained from a DHCP server in its local cache. If the DHCP
client cache contains all of the data that is requested in the pRecdParams
array of a DhcpRequestParams
function call, the client returns data from its
If the data that is requested is not available in the client cache, the
client processes the DhcpRequestParams
function call by submitting
a DHCP-INFORM message to the DHCP server. The DhcpRequestParams
can also be used to request User or Vendor ClassID-based options.
information, refer to Microsoft Developer Network (MSDN) documentation about the API call. You can find examples of code in the following
For more information, refer to RFC 1533: