Skip to main content

How to change DNS on Windows?

Updated over a week ago

Step 1: Open Network Settings

  1. Click StartSettings Network & Internet.

  2. Choose your connection type:

    • Wi-Fi → select your network → Manage known networks.

    • Ethernet → select your active connection.

Step 2: Access Adapter Properties

  1. Select your active network.

  2. Click Properties.

  3. Under IP settings, click Edit next to DNS server assignment.

Step 3: Set Custom DNS Servers

  1. Change from Automatic (DHCP) to Manual.

  2. Enable IPv4 (and IPv6, if needed).

  3. Enter your preferred DNS servers, for example:

    Google DNS

    • Primary: 8.8.8.8

    • Secondary: 8.8.4.4

    Cloudflare DNS

    • Primary: 1.1.1.1

    • Secondary: 1.0.0.1

  4. Click Save to apply changes.

Step 4: Flush DNS Cache (Recommended)

  1. Open Command Prompt as Administrator.

  2. Run the following command:

    ipconfig /flushdns
  3. You should see: “Successfully flushed the DNS Resolver Cache.”

Did this answer your question?