I have a Server 2019 which should be with a static IP address. By mistake a DHCP address was assigned to it once during installation and the DHCP also has set the DNS suffix search list.
When running ipconfig /all
I see nycab in the DNS suffix list and it causes issues with some applications I have. Comparing to other servers who did not get a DHCP address when installing there the DNS suffix is empty.
Windows IP Configuration
Host Name . . . . . . . . . . . . : xxxxxxxxxx
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : nycab
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix . : nycab
Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter
Physical Address. . . . . . . . . : xxxxxxxxxx
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::908a:a2d3:4eba:8092%2(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.128.146(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : fe80::92ec:77ff:fe0d:efed%2
DHCPv6 IAID . . . . . . . . . . . : 100666409
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-31-92-9C-00-0C-29-AE-C4-5A
DNS Servers . . . . . . . . . . . : xxxxx
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
nycab
I have tried resetting the network, running various powershell commands and even resetting the whole TCP stack but nothing seems to clear this nycab value.
If I set in the NIC a specific value in the DNS suffix that value is displayed in ipconfig but when clearing it the value reverts back to nycab.
Short of re-installing windows, how can I clear the DNS suffix? I searched the entire registry and it does not appear anywhere