Windows 10 DNS setting sporadically reverts to old (incorrect) address

dnsnetworkingwindows 10wireless-networking

This is a problem that occurs often (but not always) on my Windows 10 laptop… I turn it on and connect to a wi-fi network; and I get the icon that means "connected, but no internet". When this happens, I go to the "Network connections" and look at the Wi-fi properties. Under TCP/IPv4, I find that it is set to "Obtain IP address automatically"; but the DNS server address has reverted to an old (and incorrect) DNS address that I had once entered manually. I click the box that says "Obtain DNS server address automatically", click OK, and then all is fine — until this happens again.

How can I get my system to forget that old, wrong DNS address once and for all?

Best Answer

To clear your DNS cache:

  1. On your keyboard, press Win+X to open the WinX Menu.
  2. Right-click Command Prompt and select Run as Administrator.
  3. Run the following command:

    ipconfig /flushdns

If the command succeeds, the system returns the following message:

Windows IP configuration successfully flushed the DNS Resolver Cache.
Related Question