DhcpNameServer

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ interface-name

Data type

Range

Default value

REG_SZ

IPAddress[ IPAddress...]

(There is no default value for this entry. DHCP configures the value.)

Description

Stores a list of Domain Name System (DNS) servers to which Windows Sockets sends queries when it resolves names for the interface.

The interface-specific DNS name server for the system is determined by this entry, which the Dynamic Host Configuration Protocol (DHCP) configures, and by the NameServer entry, which the user can configure. If the value of NameServer is valid, it takes precedence over the value of DhcpNameServer.

Note

The DHCP client service adds this entry to the registry when the service is enabled. Do not change the value of this entry.

Tip

This entry is associated with a DHCP option. Configuration data for DHCP options is stored in each HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Dhcp\Parameters\Options\ Option# subkey. The path to this entry is stored in the value of the RegLocation entry in the associated Option# subkey.

To find the DHCP option associated with this entry, use Regedit.exe. From the Edit menu, click Find, and enter the following text: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpNameServer and select only the Data checkbox.

Caution

The DHCP client service adds this entry to the registry when the service is enabled. The DHCP client service maintains it for internal use. Do not delete this entry or change its value.

Related Entries

NameServer (Interfaces subkeys)

Show: