Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows 11 normally receives DNS server addresses from your router through DHCP. You can replace them for a single Wi‑Fi or Ethernet adapter, use PowerShell or netsh, and restore the automatic setting later.

This can help when your ISP’s DNS service is slow or unreliable, but it will not increase your internet speed in every case. DNS only translates names such as itechguides.com into IP addresses; it does not improve the bandwidth of an established connection.

DNS servers you can use

Use two addresses from the same provider where possible. Common public resolvers include:

Provider Preferred DNS Alternate DNS
Cloudflare 1.1.1.1 1.0.0.1
Google 8.8.8.8 8.8.4.4
Quad9 9.9.9.9 149.112.112.112

These are examples, not mandatory choices. A work, school, hotel, or VPN network may require its own DNS server for internal websites and services. If changing DNS breaks access to company resources, restore the automatic setting or ask the network administrator for the correct resolver.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
UGREEN Cat 8 Ethernet Cable 6FT, High Speed Braided 40Gbps 2000Mhz Network Cord Cat8 RJ45 Shielded Indoor Heavy Duty LAN Cables Compatible with Gaming PC PS5 PS4 PS3 Xbox Modem Router 6FT
  • 40 Gbps 2000 Mhz High Speed: The Cat 8 ethernet cable support max. 40 Gbps data transfer and 2000 MHz Brandwith, ideal for gaming and streaming, greatly improving upload and download speed, sound, image and resolution quality
  • Excellent Anti-interference: The ethernet cable comes with 4 shielded foiled twisted pairs (F/FTP), pure copper core and gold-plated RJ45 connector, reducing interference, noise and crosstalk, making network speed faster and more stable
  • Marvelous Durability: Internet cable wrapped with quality cotton braided cord, which makes the LAN cable stronger and more durable. The test proves that this internet cable can be bent at least 10000 times without broken, very suitable for long-term use
  • PoE Supported: All lengths of ethernet cord can support the PoE power supply function except 65ft. You don't need additional power supply when installing a PoE camera, which is very convenient and safe
  • Wide Compatibility: With the RJ45 Connector, network cable can be perfectly compatible with computers, laptops, modems, routers, PS5, X-Box and other networking devices. It can also be fully backward compatible with Cat7, Cat6e, Cat6, Cat5e, Cat5

Change DNS in Windows 11 Settings

Settings is the simplest method and lets you configure IPv4, IPv6, and, with supported resolvers, DNS over HTTPS.

For a Wi‑Fi connection

  1. Open Settings with Win + I.
  2. Go to Network & internet > Wi‑Fi.
  3. Select the connected Wi‑Fi network.
  4. Next to DNS server assignment, select Edit.

For an Ethernet connection

  1. Open Settings > Network & internet > Ethernet.
  2. Select the connected Ethernet network.
  3. Next to DNS server assignment, select Edit.

Enter the DNS addresses

  1. In Edit DNS settings, change DNS settings from Automatic (DHCP) to Manual.
  2. Turn on IPv4.
  3. Enter the first address in Preferred DNS and the second in Alternate DNS. For Cloudflare, use 1.1.1.1 and 1.0.0.1.
  4. Leave the DNS over HTTPS setting at its default unless you specifically want encrypted DNS. If Windows recognizes the resolver, you can choose Encrypted only (DNS over HTTPS), Encrypted preferred, unencrypted allowed, or Unencrypted only.
  5. Select Save.

Repeat the process with IPv6 if you want to set IPv6 DNS as well. For Cloudflare, the IPv6 addresses are 2606:4700:4700::1111 and 2606:4700:4700::1001.

Understand the DNS over HTTPS choices

  • Encrypted only: Windows fails DNS resolution if the selected server cannot answer using DoH. This provides the strictest setting but can cause connection failures.
  • Encrypted preferred, unencrypted allowed: Windows tries DoH first and can silently fall back to ordinary, unencrypted DNS.
  • Unencrypted only: Windows uses traditional DNS queries.

The encryption controls are available only for resolvers in Windows’ recognized DoH list. Entering a DNS IP address alone does not enable DNS over HTTPS. If a resolver is not recognized or does not support DoH, selecting encrypted-only DNS can prevent name resolution.

Change DNS using Control Panel

The classic adapter dialog is useful when you want to edit IPv4 and IPv6 properties separately.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Press Win + R, type ncpa.cpl, and press Enter.
  2. Right-click the active Wi-Fi or Ethernet adapter and select Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4), then select Properties.
  4. Choose Use the following DNS server addresses.
  5. Enter the preferred and alternate DNS addresses.
  6. Select OK, then Close.

To configure IPv6, return to the adapter’s properties, select Internet Protocol Version 6 (TCP/IPv6), choose Properties, and enter the IPv6 DNS addresses.

Rank #2
Sale
DbillionDa Cat 8 Ethernet Cable, 6FT 40Gbps 2000MHz RJ45 LAN Cable
  • Designed for Outdoor & Direct Burial Installations – Heavy-duty double-shielded Cat8 Ethernet cable minimizes EMI/RFI interference and delivers stable long-distance performance. Waterproof, anti-corrosion PVC jacket allows safe direct burial and reliable use in outdoor or indoor environments.
  • 26AWG for Stable High-Load Networks – Thicker 26AWG conductors provide faster, more stable data transmission than standard 32AWG cables. Ideal for high-performance home networks, gaming setups, smart homes, and data-intensive applications.
  • F/FTP Shielding & Hyper-Speed Performance: Cat8 Ethernet cable constructed with 4 shielded foiled twisted pairs and 26AWG OFC conductors; supports bandwidth up to 2000 MHz and data transmission speeds up to 40 Gbps, effectively reducing signal interference and ensuring stable connections. Ideal for low-latency gaming, 4K/8K streaming, and high-speed internet connections.
  • RJ45 Connectors & Wide Compatibility: Cat8 Ethernet cable with two shielded RJ45 connectors; compatible with networking switches, IP cameras, routers, Nintendo Switch, modems, PS3, PS4, Xbox, patch panels, servers, smart TVs, and more; works with Cat7, Cat6, Cat5e, and Cat5 devices
  • Weatherproof & UV Resistant: Outdoor-rated Cat8 Ethernet cable with UV-resistant PVC jacket; withstands direct sunlight, extreme cold, humidity, and hot weather; anti-aging and durable; Includes 18-month support.

This changes DNS for the selected Windows network adapter. It does not change the DNS configuration on your router, and it does not change DNS settings inside a web browser. If you leave the adapter set to obtain DNS automatically, Windows continues using the addresses supplied by DHCP.

Change DNS with PowerShell

PowerShell is convenient when you know the adapter name or interface index. Open Windows Terminal (Admin) or PowerShell as administrator.

Find the adapter name and index

Get-NetIPConfiguration

Look for the relevant InterfaceAlias and InterfaceIndex. Do not assume that the adapter is called Ethernet; a renamed adapter or a virtual network interface may have a different name.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set IPv4 DNS

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("1.1.1.1","1.0.0.1")

You can target the interface by index instead:

Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses ("1.1.1.1","1.0.0.1")

Replace Ethernet or 12 with the values shown on your computer.

Set IPv6 DNS

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("2606:4700:4700::1111","2606:4700:4700::1001")

Validate the DNS servers before applying them

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("1.1.1.1","1.0.0.1") -Validate

The -Validate parameter checks whether the supplied addresses respond as DNS servers. It must be used with -ServerAddresses; by itself, it is not a general internet connectivity test.

Rank #3
Sale
Jadaol Cat6/Cat6A Ethernet Cable 50FT Flat with Clips 10Gbps Network, White
  • Cat 6 performance at a Cat5e price but with higher bandwidth
  • High Performance Cat6, 30 AWG, RJ45 Ethernet Patch Cable provides universal connectivity for LAN network components such as PCs,computer servers,printers,routers,switch boxes,network media players,NAS,VoIP phones
  • Jadaol cat6 standard cable support Cat8 and Cat7 network and provides performance of up to 250 MHz 10Gbps and is suitable for 10BASE-T, 100BASE-TX (Fast Ethernet), 1000BASE-T/1000BASE-TX (Gigabit Ethernet) and 10GBASE-T (10-Gigabit Ethernet)
  • UTP(Unshielded Twisted Pair) patch cable with RJ45 gold-plated Connectors and are made of 100% bare copper wire, ensure minimal noise and interference
  • The unique flat cable shape allows for a cleaner and safer installation. You can easily and seamlessly make the cable run along walls, follow edges & corners or even make it completely invisible by sliding it under a carpet.

Restore DNS supplied by DHCP

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ResetServerAddresses

Use the correct interface index instead if you originally configured the adapter that way. Static addresses override DHCP for that interface until you reset them.

Change DNS with netsh

Windows 11 includes the documented netsh dnsclient context. Run these commands from an elevated Command Prompt or Windows Terminal.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

View DNS client state

netsh dnsclient show state

Set a static DNS server list

netsh dnsclient set dnsserver name="Ethernet" source=static address=1.1.1.1 register=primary validate=yes

Add the second server at position two:

netsh dnsclient add dnsserver name="Ethernet" address=1.0.0.1 index=2 validate=yes

DNS server order matters: the server at index 1 is preferred over the server at index 2. Adapter names containing spaces must be enclosed in quotation marks.

Return to automatic DNS

netsh dnsclient set dnsserver name="Ethernet" source=dhcp

Alternatively, clear a static list with:

netsh dnsclient set dnsserver name="Ethernet" source=static address=none

Display encrypted DNS settings

netsh dnsclient show encryption

Assigning resolver addresses and configuring encrypted DNS are separate operations. A static DNS address does not automatically mean that queries use DNS over HTTPS.

Use the protocol-specific netsh commands

The IPv4 and IPv6 DNS settings are independent. To see the exact adapter name, run:

Rank #4
Sale
Cable Matters 10Gbps Snagless Cat 6 Ethernet Cable, 25ft, Black
  • High-Performance Connectivity: This Cat 6 ethernet cable is designed for superior performance, with a 24 AWG copper wire core. It provides universal connectivity as an ethernet cord for LAN network components such as PCs, servers, printers, routers, and more, ensuring reliable and fast network connections
  • Advanced Cat6 Technology: Experience Cat6 performance with higher bandwidth at a Cat5e price. This network cable is future-proof, ready for 10-Gigabit Ethernet and backwards compatible with any existing Cat 5 cable network. It meets or exceeds Category 6 performance according to the TIA/EIA 568-C.2 standard
  • Reliable Wired Network Solution: Known variously as a Cat6 network cable, ethernet cable Cat 6, or Cat 6 data/LAN cable, this RJ45 cable offers a more secure and reliable connection than wireless networks. It's ideal for internet connections that demand consistency and security
  • Durable and Secure Design: The connectors of this ethernet cable feature gold-plated contacts and strain-relief boots for enhanced durability. Bare copper conductors not only improve cable performance but also comply with communication cable specifications
  • High-Speed Data Transfer: With up to 550 MHz bandwidth, this ethernet cord is ideal for server applications, cloud computing, video surveillance, and streaming high-definition video. It also supports Power over Ethernet (PoE, PoE+, PoE++) for powering devices like IP cameras, VoIP phones, and wireless access points, ensuring fast and reliable network performance.
netsh interface show interface

IPv4

netsh interface ipv4 set dnsservers name="Ethernet" source=static address=1.1.1.1 register=primary validate=yes
netsh interface ipv4 add dnsservers name="Ethernet" address=1.0.0.1 index=2 validate=yes

Show the current IPv4 DNS configuration:

netsh interface ipv4 show dnsservers name="Ethernet"

Restore IPv4 DNS to DHCP:

netsh interface ipv4 set dnsservers name="Ethernet" source=dhcp

IPv6

netsh interface ipv6 set dnsservers name="Ethernet" source=static address=2606:4700:4700::1111 register=primary validate=yes
netsh interface ipv6 add dnsservers name="Ethernet" address=2606:4700:4700::1001 index=2 validate=yes

Restore IPv6 DNS to DHCP:

netsh interface ipv6 set dnsservers name="Ethernet" source=dhcp

Changing IPv4 DNS does not change IPv6 DNS. If IPv6 remains enabled and has usable DNS settings, applications can still resolve names through IPv6.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check that the new DNS server is being used

Open Command Prompt and run:

ipconfig /all

Under the active adapter, inspect the DNS Servers line. You can also query a specific server directly:

nslookup example.com 1.1.1.1

To test ordinary resolution through Windows’ configured resolver, run:

nslookup example.com

If websites still behave as though the old resolver is being used, disconnect and reconnect the adapter, or renew the network lease:

ipconfig /release
ipconfig /renew

ipconfig /flushdns can clear cached answers, but it does not change the DNS server. It is only a cache-clearing command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Vabogu Cat 8 Ethernet Cable, 1.5Ft 3Ft 6Ft 10Ft 15Ft 20Ft 30Ft 40Ft 50Ft 60Ft 100Ft Heavy Duty High Speed Internet Network Cable, Professional LAN Cable Shielded in Wall, Indoor&Outdoor, 1.5Ft
  • 【Ultra Internet speed】Cat 8 ethernet cable support bandwidth up to 2000MHz and boosts the speed of data transmission up to 40Gbps,26AWG Cables suitable Indoor/Outdoor at hyper speed without worrying about cable mess, Cat8 can reduce any signal interference to the full extent. Allow you to stream HD videos, music, surf the net, play games at Hyper Speed
  • 【RJ45 Connectors & Wide Compatibility】With two shielded RJ45 connectors at both ends, the Cat8 Ethernet cable works perfectly Compatible with all the previous(cat5, cat5e, cat6, cat6a and cat7), And with IP Cam, routers, Nintendo switch, ADSL, Adapters, Modem, PS3, PS4, X-box, Patch panel, Servers, Networking Printers, Netgear, NAS, VoIP phones, laptop, Coupler, Hubs, Keystone jack, Smart TV, Imac and other device with RJ45 connectors
  • 【Durable & Weatherproof & UV Resistant】Cat8 lan cable is uses 100% oxygen-free copper inside, 4 Pairs 100% 26WAG pure & thick shielded twisted pair (STP) of copper wires, Aluminium foil shield, Woven mesh shield, Shielded with high quality UV-resistant PVC jacket, the outdoor rated Cat8 Ethernet cable is anti-aging, It can withstand direct sunlight and extreme cold & humid & hot weather yet still working efficiently. Can be buried directly . Suitable for both outdoor and indoor use
  • 【26AWG & Superior Performance】Comparing with other 32AWG Ethernet cable, 26AWG Cat8 is thicker, a lot faster and stable in data transferring, which is perfectly suitable for AI smart products, like Amazon Alexa, Apple Siri, Google Home, It is suitable for small or middle enterprise LANs, especially for data center switch-to-server interconnections.With sturdy high speed network cable, you will not experience a lag or stop on transferring data
  • 【Customer Care 24-7】You can contact us: we're here for you and we will reply as soon as possible. We believe in our clients' satisfaction and we always do our best to help
ipconfig /flushdns

Troubleshooting DNS changes

  • No internet access after enabling encrypted-only DNS: change the encryption mode or use a resolver supported by Windows and capable of DoH.
  • The setting appears to have no effect: check both IPv4 and IPv6, and confirm that you edited the active adapter rather than a disconnected or virtual adapter.
  • Internal work websites stop resolving: reconnect the corporate VPN or restore DHCP DNS. Public resolvers usually cannot resolve private company names.
  • DNS keeps reverting: a VPN client, security product, device-management policy, or router may be enforcing its own DNS configuration.
  • PowerShell reports that the interface cannot be found: run Get-NetIPConfiguration and use the exact alias or interface index.
  • Commands work on one connection but not another: Wi‑Fi and Ethernet have separate adapter settings. Configure each one independently if required.

A full Windows restart is normally unnecessary. The network interface may need to reconnect, but DNS changes are applied to the targeted adapter.

FAQ

Does changing DNS make my internet faster?

It can reduce the time needed to look up a domain when your current DNS service is slow, but it does not increase your connection’s download speed or bandwidth.

Which DNS server is best for Windows 11?

There is no universal winner. Cloudflare, Google, and Quad9 are widely used public options. Test from your own network, and keep your organization’s DNS when you need access to private or managed services.

Do I need to change both IPv4 and IPv6 DNS?

Not necessarily, but they are separate settings. If IPv6 is active and you configure only IPv4, Windows may continue using the existing IPv6 DNS configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What happens if I enter the wrong DNS address?

Websites may fail to resolve even though the network appears connected. Restore automatic DNS or replace the address with a working resolver. The internet connection itself may still be active.

Does ipconfig /flushdns change the DNS server?

No. It clears Windows’ local DNS cache. Change the adapter DNS settings with Settings, Control Panel, PowerShell, or netsh.

Can I change DNS for only one browser?

Some browsers have their own Secure DNS or DNS over HTTPS setting. That is separate from Windows adapter DNS and may cause browser queries to use a different resolver.

The Bottom Line

For most users, open Settings > Network & internet, select the active Wi‑Fi or Ethernet connection, choose DNS server assignment > Edit, switch to Manual, enter the resolver addresses, and select Save. Configure IPv6 separately if needed, and restore Automatic (DHCP) when a network requires its own DNS service.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.