4 ways to modify DNS settings on a Windows 11 PC

In Windows 11, a DNS server is a server that translates domain names into an IP address. In this way, computers (servers) with a browser can access the Internet and vice versa.

A DNS server is assigned by your internet provider by default in the internet settings. Therefore, the DNS server is also set as soon as you receive an IP address from your internet provider. The same applies to the Internet settings in Windows 11.

Suppose you connect directly to the Internet via your Windows 11 computer. In that case, you will see the external DNS server addresses in the settings. If you connect through a router, you will see the DNS settings on the router. Windows 11 will receive internal DNS server IP addresses from the router. You can also modify these internal DNS server IP addresses.

4 ways to change the DNS server in Windows 11

Modifying DNS Server via Command Prompt

The first way is immediately a technical way to change the DNS server address, namely through the Command Prompt.

Open the Command Prompt as administrator.

Open Command prompt as Administrator

In the Command Prompt type the command:

ipconfig /all

Then write down the name of the network adapter. In this case, “Ethernet”.

ipconfig all

Then type the following command to change the DNS server settings. Note this is an example with the interface name “Ethernet” and static DNS IP: 8.8.8.8.

netsh interface ip set DNS name="Ethernet" static 8.8.8.8

To set an alternate DNS server, modify the command with a new DNS IP address and “index=2” after it.

netsh interface ip set DNS name="Ethernet" static 8.8.4.4 index=2

Changing the DNS server via PowerShell

The second way to change a DNS server in Windows 11 is through PowerShell. Again, this is pretty technical.

Right-click on the Start button. In the menu, click on “Windows Terminal (Admin) or PowerShell (Admin).

In PowerShell, you must first retrieve the interface index. You can do this by entering the following command:

get-netipconfiguration

Then note the “InterfaceIndex” of the network adapter whose DNS server(s) you want to change.

InterfaceIndex

Then enter the following command to change the DNS Server settings via PowerShell.

Make sure you modify the interface index and that you enter both DNS servers, so modify the command below:

set-dnsclientserveraddress -interfaceindex 4 -serveraddresses 8.8.8.8, 8.8.4.4.

Change DNS servers using PowerShell

Change DNS Server via Settings (recommended)

Settings in Windows 11 are where you can most easily change the DNS Server settings.

Right-click the Start button and click Settings from the menu. In the settings, click Network & Internet on the left.

Then click on the type of internet connection you are using. This can be “Ethernet” via cable or “Wi-Fi” wireless.

Open Ethernet or Wifi settings in Windows 11

Then click on the “Edit” button next to “DNS Server Assignment” and “IPv4 DNS Servers”.

Edit DNS Settings in Windows 11

Change the DNS Server settings to Automatic or Manual, depending on what you need.

Under “Manual”, enter the DNS Server preferred and alternate DNS server addresses and click Save.

Edit preferred and alternate DNS servers in Windows 11

Changing DNS Server via Control Panel

The old-fashioned way is to set the DNS Servers through the Control Panel.

Open the Control Panel. Then click on “Network and Internet” and then “Network and Sharing Centre”.

Network and Sharing Centre

After that, click “Change Adapter Settings” on the left, then right-click on the active adapter “Ethernet” for cable connection or “Wi-Fi” for wireless.

In the menu click on Properties.

Adapter settings properties

Then click “Internet protocol version 4 (IPv4)” and click the Properties button.

Internet Protocol version 4 properties

Select the option “Use the following DNS server addresses” and enter the preferred and alternative DNS servers. Then click OK to confirm.

Use the following DNS server addresses

I hope you managed to change the DNS servers in Windows 11. Thank you for reading!

Also read: 3 ways to find a Mac address in Windows 11.

Leave a Comment

Your email address will not be published.

Scroll to Top