Custom DNS servers can improve name resolution reliability, reduce lookup latency, or route internal hostnames to the correct addresses on managed networks. Incorrect DNS settings can make websites and internal services appear offline even when the network connection itself is working.
On Windows 11, DNS servers are configured per network adapter. The adapter typically receives DNS servers automatically from DHCP, but switching the DNS server assignment to manual overrides those values without changing the IP address configuration.
DNS changes apply only to the selected adapter, so wired and wireless connections can resolve names differently. Some VPN clients, endpoint security tools, or Group Policy settings can replace or lock DNS entries, and public resolvers may not work on networks that require internal DNS for split-horizon zones.
Steps to change DNS servers in Windows 11:
- Sign in to Windows 11 with an account allowed to change network settings.

- Open Settings using Win + I.

- Open Settings → Network & Internet.

- Open the connected network properties page for Wi-Fi or Ethernet.

- Click Edit next to DNS server assignment.

- Select Manual in the Edit DNS settings dialog.
Select Automatic (DHCP) to revert to DNS provided by DHCP.
Manual DNS overrides the DHCP DNS list for the adapter. Incorrect servers prevent hostname resolution.
- Enable the IPv4 toggle.

- Enter the Preferred DNS server address for IPv4.
Use DNS servers approved by the network administrator.
- Enter the Alternate DNS server address for IPv4.

- Enable the IPv6 toggle when required by the network.
Leave IPv6 disabled when the network does not provide IPv6 connectivity.
- Enter the Preferred DNS server address for IPv6 when enabled.

- Enter the Alternate DNS server address for IPv6 when enabled.

- Click Save.

- Open Windows Terminal or Command Prompt.

- Clear the DNS resolver cache when lookups still resolve to old addresses.
C:\> ipconfig /flushdns Windows IP Configuration Successfully flushed the DNS Resolver Cache.
Related: How to flush DNS cache in Windows
- Confirm the configured DNS servers with ipconfig /all.
C:\> ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : workstation Primary Dns Suffix . . . . . . . : example.invalid ##### snipped ##### Ethernet adapter Ethernet: Connection-specific DNS Suffix . : example.invalid DNS Servers . . . . . . . . . . . : 192.0.2.53 192.0.2.54 ##### snipped #####
- Run nslookup to confirm the DNS server answering queries.
C:\> nslookup www.example.com Server: UnKnown Address: 192.0.2.53 Non-authoritative answer: Name: www.example.com Address: 93.184.216.34
Mohd Shakir Zakaria is a cloud architect with deep roots in software development and open-source advocacy. Certified in AWS, Red Hat, VMware, ITIL, and Linux, he specializes in designing and managing robust cloud and on-premises infrastructures.
