How to Change DNS Server Address in Windows 11 (4 Methods)

4 straight forward Ways to Change DNS Server IP Address in Windows 11 via cmd Command, PowerShell cmdlet, Settings app & Control Panel.

Change DNS Server

DNS aka Domain Name System acts as the catalog of Networks on a computer which is used to determine the IP address of a website you visit. You can change DNS Server Address in Windows 11 keeping advantage of speed, privacy, and security of PC in your mind.

Thanks to Windows 11 as it lets you modify Preferred and alternate DNS Server Addresses at any time and altering this is relatively easy & quick. There are multiple methods to change the value such as via CMD command, Cmdlet, Control panel, and Settings.

Change DNS Server Address in Windows 11

Here is how to change DNS server address in Windows 11 –

Way-1: Via Network Connections Window

To change DNS Server IP Address in Windows 11 from Control Panel, follow the below guidelines –

  1. Press Winkey+R.
  2. Type – ncpa.cpl.
  3. Hit – Enter.
how to change DNS server address in Windows 11
  1. Right click on Network connection name and select – Properties.
Network connection Properties
  1. Highlight Internet Protocol Version 4 (TCP/IPv4) by clicking on it.
  2. Click on – Properties.
  3. Check the option – Use the following DNS server addresses.
  4. Enter Preferred DNS server. This may be the server address of Cloudflare, Google, OpenDNS, or another service.
  5. Also, enter the Alternate DNS server address that your device will use when it can’t reach the preferred server address.
Provider Preferred DNS Server Alternate DNS Server
Google 8.8.8.8 8.8.4.4
Cloudflare 1.1.1.1 1.0.0.1
OpenDNS 208.67.222.222 208.67.220.220
Alternate DNS 76.76.19.19 76.223.122.150
Quad9 9.9.9.9 149.112.112.112
Control D 76.76.2.0 76.76.10.0
CleanBrowsing 185.228.168.9 185.228.169.9
AdGuard DNS 94.140.14.14 94.140.15.15
Change DNS Server IP Address in Windows 11 using control panel
  1. Click  – OK and then close the open windows.

See – How to Use Google DNS Servers in Windows 11 or 10.

Way-2: Through CMD Command

Via command prompt is the easiest method to the DNS so follow the steps –

  1. Click on Start from the taskbar.
  2. Type – cmd.
  3. Select – Run as Administrator.
  4. Select Yes on Confirmation prompt.
Command prompt as administrator
  1. To see your current networking configuration, copy-paste the following command –

ipconfig /all

  1. Hit Enter.
Change DNS Server IP Address in Windows 11 cmd
  1. Within the field of network adapter, see the adapter’s name and these fields:
    • Network name, and
    • DNS Servers.
  2. In order to assign the Preferred DNS server address in Windows 11 to a new one, type the following command:
netsh interface ip set dns name="Ethernet" static 8.8.8.8

Don’t forget to replace Ethernet with the name of your adapter and the 1.1.1.1 with the DNS server IP address for the service you want to use. Press Enter.

Preferred DNS Server IP address
  1. Type the below command to change Alternate DNS server address address and press Enter –
netsh interface ip add dns name="Ethernet" 8.8.4.4 index=2

Replace Ethernet with the name of your adapter and 1.0.0.1 with the alternate DNS server address of your choice.

Alternate DNS Server IP address
  1. Finally, to confirm the changes, run – ipconfig / all once more.

Way-3: Using Windows PowerShell Cmdlet

You can change DNS Server IP Address using PowerShell through the following steps –

  1. Click on Start.
  2. Type – PowerShell.
  3. When it appears, select the – Run as administrator
  4. To get your current network configuration, copy-paste the following command –
Get-NetIPConfiguration
  1. Press – Enter.
Change DNS Server Address in Windows 11 PowerShell

After running the command, note the following information:

InterfaceIndex

DNSServer

  1. Type the following command to assign a primary DNS server address and press Enter (replacing InterfaceIndex 6 with the value):
Set-DnsClientServerAddress -InterfaceIndex 6 -ServerAddresses 8.8.8.8

If applicable to you, set a secondary DNS server IP address, you can use the same command, by using a comma and an alternative address:

Set-DnsClientServerAddress -InterfaceIndex 6 -ServerAddresses 8.8.8.8, 8.8.4.4

You might be noticing that InterfaceIndex number will be replaced with the one respective with your network adapter, and ServerAddresses with the DNS address.

Set-DnsClientServerAddress -InterfaceIndex 6 -ServerAddresses 8.8.8.8, 8.8.4.4

Way-4: Via Settings

One of the top methods to change DNS Server IP Address in Windows 11, you should use the Settings app. Therefore follow the steps –

  1. Press – Windows + I.
  2. When the Settings app appears, click on – Network & Internet.
  3. Choose – Ethernet.
  1. From “DNS server assignment” section, click – Edit.
edit ip assignment
  1. Select – Manual option using the drop-down menu.
  2. Turn on the IPv4 toggle button.
  3. Under the “Preferred DNS” section, specify the IP address of the DNS server for Cloudflare, Google, OpenDNS, or another service.
  4. If you want to enable DNS encryption then select the Encrypted only (DNS over HTTPS) under the “Preferred DNS encryption” field.
  5. Enter IP address of the secondary DNS address in the “Alternate DNS” field.
  6. (Optional) Under the “Alternative DNS encryption” section, select the Encrypted only (DNS over HTTPS) option to enable encryption for the secondary server.
  7. Click on – Save.
How to Change DNS Server Address in Windows 11 (4 Methods)

Methods list:

Way-1: Via Network Connections window
Way-2: Through CMD Command
Way-3: Using PowerShell Cmdlet
Way-4: Via Settings app

That’s all!!

Sharing is caring    Share Whatsapp

 
Topics:  Windows 10
  
About Sunita
Love to play with Windows 11 and 10. Suggestion - Going for Registry change or system files edit then remember to take a backup or create a restore point before Starting.