How to set different DNS settings on devices running Windows 11

Do you want to use a custom DNS address on Windows 11? Here are three ways to complete this task.

When you connect to a network and the internet, the Domain Name System (DNS) address is essential to make accessing different websites and downloading files easier.

Usually, you don't have to worry about this configuration because it's already provided by your Internet Service Provider (ISP). The problem is that these services are slow, unreliable, and, more importantly, not private. However, it's possible to change this configuration to other services that provide more privacy and performance. 

Defining DNS

In a nutshell, a Domain Name System is usually a free service that provides the technology that allows you to type the website name in the browser to load the web page. If DNS didn't exist, it would be nearly impossible to navigate the web as we do today because you would need to use the site's IP address, which is difficult to remember.

The reason is that computers require numeric addresses (commonly known as IP addresses), such as 104.18.189.55, to communicate with other devices. However, these IPs are not easy for humans to remember, and DNS provides the means to translate friendly website names (for example, Microsoft.com) to the numeric address that computers understand when you type the domain name in the address bar of the browser.

You probably never noticed this translation because the process happens almost in real time. However, depending on the service you use, this could make your internet experience slower and unreliable. 

If you prefer a different service or want to switch to a more private and reliable resolver, Windows 11 allows you to change the DNS settings in at least three ways using the Settings app, Control Panel, and Command Prompt.

Although it's best to configure the DNS settings on the router, sometimes, you may have reasons to change the network configuration on your computer manually. For instance, if you don't have access to the router, you must configure a server that needs static settings or for many other reasons.

This guide will walk you through the steps to change the DNS settings on Windows 11.

HOW TO CHANGE DNS FROM SETTINGS ON WINDOWS 11

To change the DNS settings on Windows 11, use these steps:

  1. Open Settings.
  2. Click on Network & internet.
  3. Click the Ethernet or Wi-Fi page on the right side.

(Image credit: Future)

(Image credit: Future)

  • Quick note: If you select the Wi-Fi option, you must click the properties settings to access the networking configuration.
  1. Click the Edit button for the "DNS server assignment" setting.
  2. Select the Manual option from the drop-down menu.
  3. Turn on the IPv4 toggle switch.
  4. Confirm the primary DNS address in the "Preferred DNS" setting. For example, to use Cloudflare, Google Public DNS, or Cisco OpenDNS, use these settings:
  5. Cloudflare: 1.1.1.1
  6. Google Public DNS: 8.8.8.8
  7. OpenDNS: 208.67.222.222
  8. (Optional) Select the encryption option in the "Preferred DNS encryption" setting. Options available include: 
  9. Unencrypted only — Encryption won't be for DNS queries.
  10. Encrypted only (DNS over HTTPS) — DNS queries will be sent encrypted using the HTTPS protocol.
  11. Encrypted preferred, unencrypted allowed — Encryption will be preferred to send DNS queries, but unencrypted queries will also be permitted.
  12. Quick note: DNS over HTTPS (DoH) is a network protocol that encrypts DNS queries using the standard Hypertext Transfer Protocol Secure (HTTPS) protocol to protect DNS queries, resulting in better security and privacy browsing the web. You will only be able to enable this feature if you have specified a DNS address that supports encryption. 
  13. Confirm the secondary DNS address in the "Alternate DNS" setting. You can use one of the secondary addresses:
  14. Cloudflare: 1.0.0.1
  15. Google Public DNS: 8.8.4.4
  16. OpenDNS: 208.67.220.220
  17. (Optional) Select the encryption option in the "Alternative DNS encryption" setting.
  18. Click the Save button.
  19. Once you complete the steps, the new settings should apply immediately. However, you may need to restart the computer for new DNS servers to start working.

HOW TO CHANGE DNS FROM COMMAND PROMPT ON WINDOWS 11

To change the Windows 11 DNS addresses with commands, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to run the netsh tool and press Enternetsh
  4. Type the following command to identify the names of the network adapters and press Enter: interface show interface
  5. Type the following command to set the primary DNS address and press Enterinterface ip set dns name="ADAPTER-NAME" source="static" address="X.X.X.X"

In the command, change "ADAPTER-NAME" with the name of the network adapter you identified in step 4, and change "X.X.X.X" with the IP address you want to use. To use Cloudflare, Google Public DNS, or Cisco OpenDNS, you can use these settings: 

  • Cloudflare: 1.1.1.1 and 1.0.0.1
  • Google Public DNS: 8.8.8.8 and 8.8.4.4
  • OpenDNS: 208.67.222.222 and 208.67.220.220

This example sets the primary DNS address to 1.1.1.1: interface ip set dns name="Ethernet0" source="static" address="1.1.1.1"

  1. Type the following command to add an alternative DNS address and press Enterinterface ip add dns name="ADAPTER-NAME" addr="X.X.X.X" index=2

In the command, change "ADAPTER-NAME" with the name of your network adapter you queried on step 4, and change "X.X.X.X" with the secondary address. This example sets the secondary DNS address to 1.0.0.1: interface ip add dns name="Ethernet0" addr="1.0.0.1" index=2 

  • Quick tip: Repeat the above steps to set additional addresses (if necessary). However, in the command, you must increase the number of the index option by 1. For instance, interface ip add dns name="Ethernet1" addr="8.8.8.8" index=3

Once you complete the steps, the computer will start using the new addresses to perform DNS queries.

5
1 ratings
Content Team
Content Team
The AffiliateCMS Team is here to support you every step of the way.