In Windows 11 you can change the DNS address from the Settings app in a couple of minutes. The same screen has a “DNS over HTTPS” option that encrypts your queries.
Windows 7, 8 and XP no longer receive security updates. If you use one of these, upgrading the operating system matters more than the DNS setting.
Steps on Windows 11
- Open Settings (Windows + I).
- Go to Network & internet.
- Choose Wi-Fi or Ethernet depending on your connection. On Wi-Fi, also open the properties of the network you are connected to.
- Click Edit next to DNS server assignment.
- In the window that opens, choose Manual and turn on the IPv4 switch.
- Type
1.1.1.1in Preferred DNS and1.0.0.1in Alternate DNS. - Optionally set DNS over HTTPS to On (automatic template) for both addresses.
- Click Save.
Menu names can differ slightly between Windows versions. If you want another provider, the addresses are on the public DNS servers page.
Steps on Windows 10
- Open Control Panel › Network and Sharing Center.
- Click Change adapter settings on the left.
- Right-click the connection you use and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Tick Use the following DNS server addresses, enter the two addresses and click OK.
This method also works on Windows 11, but the encrypted DNS option only exists in the Settings app.
Checking the change
Type cmd in the Start menu, open Command Prompt and run these two commands in turn:
ipconfig /flushdns
ipconfig /all
The first clears old DNS records. In the output of the second, you should see the addresses you entered on the “DNS Servers” line.
Going back
On the same screen choose Automatic (DHCP) instead of Manual and save. On Windows 10, tick Obtain DNS server address automatically.
On work or school computers this setting may be locked by the administrator.
