Network How-to

How to Change DNS Server on Windows 11 (Step by Step)

Change DNS server on Windows 11 to Cloudflare, Google or Quad9 for faster, more reliable browsing: Settings steps, encrypted DNS and how to test it.

How to Change DNS Server on Windows 11 (Step by Step)
On this page
    Quick answer

    To change DNS server on Windows 11, open Settings, Network & internet, select Wi-Fi or Ethernet, then Hardware properties. Next to DNS server assignment select Edit, choose Manual, turn on IPv4 and enter a Preferred DNS such as 1.1.1.1 and an Alternate DNS such as 1.0.0.1. Turn on DNS over HTTPS for encryption, select Save, then flush DNS.

    Time: 2 minutes · Cost: free · Works on: Windows 11 (Windows 10 steps below)

    By default, your PC uses your internet provider's DNS servers. They work, but they can be slow, unreliable during outages, and they see every site you visit. Switching to a public DNS service is one of the easiest network upgrades there is. This guide shows how to change DNS server on Windows 11, which provider to pick, and how to check it worked.

    Which DNS Server Should You Use?

    Popular public DNS servers
    ProviderPreferred (IPv4)Alternate (IPv4)Best for
    Cloudflare1.1.1.11.0.0.1Speed and privacy
    Google8.8.8.88.8.4.4Reliability
    Quad99.9.9.9149.112.112.112Blocking known malicious sites
    Cloudflare for Families1.1.1.31.0.0.3Blocking malware and adult content

    IPv6 equivalents: Cloudflare 2606:4700:4700::1111 and 2606:4700:4700::1001; Google 2001:4860:4860::8888 and 2001:4860:4860::8844.

    Method 1: Change DNS in Settings

    1. Open your connection

      Press Win + I, go to Network & internet, and select Wi-Fi (then your network's properties) or Ethernet.

    2. Edit DNS server assignment

      For Wi-Fi, open Hardware properties. Next to DNS server assignment, select Edit and change Automatic (DHCP) to Manual.

    3. Enter the servers

      Turn on IPv4. Enter 1.1.1.1 as Preferred DNS and 1.0.0.1 as Alternate DNS. Repeat under IPv6 with the IPv6 addresses if your connection uses IPv6.

    4. Turn on encryption (optional)

      Set DNS over HTTPS to On (automatic template). Your lookups are then encrypted, so the network cannot read them. Select Save.

    5. Flush the cache

      Run ipconfig /flushdns in Terminal so Windows forgets answers from the old server. See how to flush DNS.

    Method 2: Control Panel (Windows 10 and 11)

    Press Win + R, type ncpa.cpl and press Enter. Right-click your adapter, choose Properties, select Internet Protocol Version 4 (TCP/IPv4), then Properties. Choose "Use the following DNS server addresses", enter the two addresses and select OK. This is the method for Windows 10.

    Method 3: PowerShell

    In Terminal as administrator, replace "Wi-Fi" with your adapter name from Get-NetAdapter:

    PowerShell
    Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses 1.1.1.1,1.0.0.1

    To go back to your ISP's DNS: Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses.

    Change DNS for the Whole Home

    To switch every device at once, sign in to your router's admin page (its address is the Default Gateway in ipconfig) and enter the DNS servers in its WAN or DHCP settings. Phones, TVs and consoles then use them automatically.

    Check That It Worked

    Command
    nslookup netspeedm.com

    The first lines show the server that answered, for example one.one.one.one (1.1.1.1). IP Address App shows your active DNS servers on its dashboard and includes a privacy check that verifies which DNS resolver you are really using, which is handy if a VPN or router overrides your settings.

    IP Address App adapter list showing IP address, gateway and DNS servers
    Each adapter's DNS servers, gateway and IP address in one place.

    Why Your DNS Server Matters

    Every time you open a website, your PC first asks a DNS server for the site's IP address. A page with images, fonts and ads from several domains may need a dozen lookups before it finishes loading. A slow or overloaded DNS server adds a small delay to each one, and when it fails, sites stop loading entirely even though the connection is fine. Public resolvers such as Cloudflare and Google run servers in hundreds of cities, so the nearest one usually answers in a few milliseconds. Unencrypted DNS also reveals the names of every site you visit to anyone on the network, which is why the DNS over HTTPS option is worth turning on, especially on public Wi-Fi.

    What Changing DNS Does and Does Not Do

    • Does: speed up the first connection to sites, fix DNS errors from a flaky ISP, add encryption, and optionally block malware sites.
    • Does not: increase download speed, lower game ping, or hide your IP address. For those, see network fixes or use a VPN.

    Troubleshooting

    • No internet after changing DNS. Check for typos, or set DNS back to Automatic (DHCP).
    • Work network stops working. Company networks use internal DNS. Use Automatic on work Wi-Fi.
    • Settings revert. A VPN app or management software can override DNS. Check its settings.

    Changing DNS is the usual fix when Windows reports that the DNS server is not responding.

    FAQ

    Is 1.1.1.1 or 8.8.8.8 better?

    Both are fast and reliable. Cloudflare is often slightly faster and has a strict privacy policy; Google is equally dependable. Test both with your own connection.

    Is it safe to change DNS servers?

    Yes, with a well-known provider. You can switch back to Automatic at any time.

    Will changing DNS make my internet faster?

    It can make pages start loading a little sooner, but it does not change your download speed.

    Do I need to change DNS on each network?

    In Windows 11 the setting is per connection. Ethernet and each Wi-Fi adapter have their own setting; changing it on the router covers all devices on that network.

    Conclusion

    Set a public DNS server in your connection's Hardware properties, turn on DNS over HTTPS, flush the cache and confirm with nslookup. It takes two minutes and makes browsing more reliable and private. For more tools, see all network apps for Windows.

    Get it freeIP Address App

    Try IP Address App

    Your public IP, ISP, location and network tools like ping and DNS lookup.

    Get it fromMicrosoft Store