Configure DNS Suffix for Specific Adapter in Regedit
This guide explains how to manually configure a connection-specific DNS suffix for an individual network adapter using the Windows Registry Editor (Regedit). By locating the target adapter’s unique Globally Unique Identifier (GUID) and modifying its corresponding interface parameters under the TCP/IP service key, you can enforce custom domain resolution settings directly at the registry level.
Step 1: Identify the Network Adapter’s GUID
To apply settings to a specific adapter, you first need its unique GUID:
Press
Win + R, typecmd, and press Enter.Run the following command:
getmac /v /fo listLocate your target network adapter and note the string inside the braces under the Transport Name (for example:
{12345678-ABCD-1234-ABCD-1234567890AB}).
Step 2: Open Registry Editor and Navigate to the Interface
Press
Win + R, typeregedit, and press Enter.Navigate to the following registry path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\InterfacesExpand the Interfaces key to see subkeys named after adapter GUIDs.
Click the subkey that matches the GUID identified in Step 1.
Step 3: Configure the DNS Suffix
- In the right-hand pane of the target GUID subkey, look for a string
value (
REG_SZ) named Domain. - If Domain does not exist:
- Right-click an empty area in the right pane.
- Select New > String Value.
- Name the value
Domain.
- Double-click the Domain string value.
- In the Value data field, enter your desired DNS
suffix (e.g.,
corp.example.com). - Click OK to save the value.
(Optional) If you want to ensure dynamic DHCP settings do
not overwrite this value, check if a DhcpDomain string
exists. The static Domain key will take precedence over
DhcpDomain, but setting Domain directly
ensures the manual override remains active.
Step 4: Apply and Verify Changes
To apply the registry configuration without rebooting the system:
Open Command Prompt as Administrator.
Restart the TCP/IP stack and refresh the DNS client cache:
ipconfig /flushdns ipconfig /registerdnsVerify that the new suffix is assigned to the adapter:
ipconfig /allLook under the specific adapter section for the Connection-specific DNS Suffix line to confirm it displays your newly configured domain.