Why does a DHCP-provided DNS IP address becomes a static one in Windows 10

dhcpwindows 10

I have a Windows 10 machine which often changes networks and retrieves its IP configuration via DHCP. Since an indefinite moment in the past it started to set its DNS as fixed, despite the fact that they are retrieved via DHCP:

enter image description here

The initial setting was Obtain DNS server address automatically and upon receiving this address, it switches to the "static mode" above (the DNS IPs are the one it received from DHCP).

Only the DNS setting is impacted.

What is the reason for this behaviour?

Best Answer

While typing this question I got the answer from someone who had the same problem: the Obtain DNS server address automatically setting is "inherited", in the sense that if any interface on the machine is set to have a static DNS server, the others will switch to a static one upon receiving the DHCP information.

The solution is therefore to look though all the interfaces on the machine and make sure that all DNS settings are set to DHCP.