How to Change Your DNS Server on Windows 11

Quick answer: To change your DNS server on Windows 11, go to Settings > Network & internet > Ethernet, select Edit next to DNS server assignment, choose Manual, turn on IPv4, enter the new addresses (for example, 1.1.1.1 and 1.0.0.1), and select Save.

Every time you visit a website, your PC uses a DNS server to translate a name like fixitstep.com into an address computers can understand. By default, Windows 11 uses the DNS server provided by your router or internet provider. That works for most people, but there are good reasons to switch: some public DNS services may respond faster in your area, offer extra privacy features, or block known malicious websites.

Changing your DNS server can also help when your PC is connected to the network but websites won’t load. This guide shows you how to change DNS servers on Windows 11 using the Settings app, how to turn on DNS over HTTPS (encrypted DNS), how to use the Control Panel method, and how to undo the change.

Before You Start

  • Use an administrator account. Changing network settings requires administrator rights.
  • Write down your current settings. If your DNS was already set manually, note the current values so you can restore them later.
  • Work or school PCs: If your PC is managed by an organization, DNS settings may be locked or required for internal resources. Check with your IT department before changing anything.
  • Change the right adapter. DNS settings are saved per network adapter. If your PC has more than one (for example, "Ethernet" and "Ethernet 2"), change the one that’s connected.

Popular Public DNS Servers

Here are some widely used public DNS services. You only need one provider: enter its primary address as Preferred DNS and its secondary address as Alternate DNS.

ProviderIPv4 (preferred / alternate)IPv6 (preferred / alternate)
Cloudflare1.1.1.1 / 1.0.0.12606:4700:4700::1111 / 2606:4700:4700::1001
Google Public DNS8.8.8.8 / 8.8.4.42001:4860:4860::8888 / 2001:4860:4860::8844
Quad99.9.9.9 / 149.112.112.1122620:fe::fe / 2620:fe::9

Speed and reliability depend on your location and internet provider, so results vary. If you’re not sure which one to pick, any of these is a reasonable choice for home use.

Method 1: Change DNS in Settings (Recommended)

  1. Press Windows + I to open Settings.
  2. Select Network & internet, then select Ethernet.
Settings > Network & internet page with Ethernet highlighted
  1. Find DNS server assignment and select Edit.
Ethernet page with the DNS server assignment Edit button
  1. In the Edit DNS settings window, change the drop-down from Automatic (DHCP) to Manual.
  2. Turn on the IPv4 toggle.
  3. Enter the addresses in Preferred DNS and Alternate DNS (for example, 1.1.1.1 and 1.0.0.1).
Edit DNS settings window with Manual selected and IPv4 addresses filled in
  1. (Optional) If your network uses IPv6, turn on the IPv6 toggle and enter the IPv6 addresses from the table above.
  2. Select Save.

Optional: Turn On DNS over HTTPS (Encrypted DNS)

Standard DNS requests are sent unencrypted, which means others on the network path can potentially see which websites you look up. DNS over HTTPS (DoH) encrypts these requests. Windows 11 supports DoH with several well-known providers, including Cloudflare, Google, and Quad9.

  1. Open the Edit DNS settings window again (see Method 1).
  2. Under the Preferred DNS address, find the DNS over HTTPS drop-down.
  3. Choose On (automatic template). Windows fills in the encryption template automatically for supported providers.
  4. Repeat for Alternate DNS.
  5. Select Save.
DNS over HTTPS drop-down set to On (automatic template)

After saving, the Ethernet page should show the DNS servers marked as Encrypted. If DoH isn’t available for the address you entered, the option may not appear or may not work; in that case, use one of the providers listed above.

Method 2: Change DNS in Control Panel

If you prefer the classic interface, or if the Settings method isn’t available on your PC, you can use the Network Connections window.

  1. Press Windows + R, type ncpa.cpl, and press Enter.
  2. Right-click your Ethernet adapter and select Properties.
Network Connections window with the right-click menu on the Ethernet adapter
  1. Select Internet Protocol Version 4 (TCP/IPv4) and then select Properties.
  2. Choose Use the following DNS server addresses.
  3. Enter the Preferred DNS server and Alternate DNS server addresses.
  4. Check Validate settings upon exit (optional), then select OK.
Internet Protocol Version 4 (TCP/IPv4) Properties window with DNS addresses
  1. Select Close in the Ethernet Properties window.

For IPv6, repeat steps 3 to 6 with Internet Protocol Version 6 (TCP/IPv6).

How to Check That Your New DNS Server Is Being Used

  1. Right-click the Start button and select Terminal.
  2. Clear the old DNS cache so your PC starts using the new servers right away:
ipconfig /flushdns
  1. Check your current DNS configuration:
ipconfig /all
  1. Look for the DNS Servers line under your Ethernet adapter. It should list the addresses you entered.
Terminal showing the DNS Servers line in ipconfig /all output

You can also test a lookup with nslookup fixitstep.com. The Server line at the top of the result shows which DNS server answered.

You can also confirm in Settings: on the Ethernet page, check the IPv4 DNS servers line.

How to Go Back to Automatic DNS

If websites stop loading, or you simply want to undo the change:

  • Settings method: On the Ethernet page, select Edit next to DNS server assignment, choose Automatic (DHCP), and select Save.
  • Control Panel method: Open the Internet Protocol Version 4 (TCP/IPv4) properties again and choose Obtain DNS server address automatically.

Then run ipconfig /flushdns in Terminal.

Router or PC: Where Should You Change DNS?

You can change DNS in two places, and each has its advantages:

  • On your PC (this guide): The change affects only this computer. It’s quick, easy to undo, and doesn’t require access to your router. It’s the best choice if you want to test a DNS provider or if you can’t change your router’s settings.
  • On your router: The change applies to every device on your network, including phones, TVs, and game consoles. The steps depend on your router model, so check its admin page or manual.

If you set DNS on both, the PC setting takes priority for that computer.

Troubleshooting

  • Websites won’t load after the change: Double-check that the addresses were typed correctly. A single wrong digit will break name resolution. If needed, switch back to Automatic (DHCP).
  • The setting reverts or is grayed out: Your PC may be managed by an organization, or security/VPN software may be controlling DNS. Check the software’s settings.
  • Using a VPN: Many VPN apps use their own DNS servers while connected, which overrides your Windows settings. That’s normal.
  • Still having problems? As a last resort, resetting your network settings returns all network configuration to its defaults.

Frequently Asked Questions

Will changing my DNS server make my internet faster?

It may make websites start loading slightly faster in some cases, because DNS lookups can be quicker, but it doesn’t increase your internet plan’s download or upload speed. Results depend on your location and provider.

Is it safe to change my DNS server?

Yes, as long as you use a reputable DNS provider, such as the ones listed in this guide. You can switch back to automatic DNS at any time.

What is the difference between Preferred DNS and Alternate DNS?

Windows uses the Preferred DNS server first. If it doesn’t respond, Windows tries the Alternate DNS server. Using two addresses from the same provider is a common setup.

Related Guides


About FixItStep

This guide was written by the FixItStep Team, a small group of tech enthusiasts who create clear, step-by-step tutorials for Windows 11 and everyday software. The screenshots in our guides are taken on a real Windows 11 PC, and we review our articles as Windows changes. Found a step that looks different on your PC? Let us know, or learn more about us.