How to Change DNS Servers in Windows 11—and Roll Back Safely if Work Sites or Public Wi-Fi Stop Working

DNS translates names such as example.com into the numeric IP addresses that computers use to connect. In Windows 11, changing DNS changes the resolver used by a specific Wi-Fi or Ethernet adapter; it does not change the websites themselves, repair every connection problem, or reliably make browsing faster.

The low-risk approach is to record the current setting, change DNS only on the active connection, test ordinary sites and any authorized work resource, and switch the adapter back to Automatic (DHCP) if something breaks. Microsoft documents manual DNS and encrypted-DNS settings as part of Windows network configuration.

Microsoft: Essential Network Settings and Tasks in Windows

Check these conditions before changing DNS

Do not override DNS casually on an employer-managed computer. Company DNS can resolve internal names, enforce network controls, or be required by a work VPN or security product. If a device is managed or a work site is involved, ask the organization’s IT team which settings are permitted.

  • Work VPN connected: Disconnect only if your organization’s instructions allow it, or leave DNS unchanged. Many VPNs supply organization DNS after they connect.
  • Internal names or work-only resources: Public DNS normally cannot resolve names that exist only inside the organization.
  • Public Wi-Fi: Captive portals sometimes need the network’s normal DNS flow before they display a sign-in page.
  • Current settings unknown: Write down whether DNS server assignment is Automatic (DHCP) or Manual, plus any displayed server addresses, before editing.

Also confirm which adapter is actually carrying the connection. A laptop may show Wi-Fi, Ethernet, virtual adapters, and a VPN at once. Editing an unused adapter will have no immediate effect.

A safe workflow for changing and rolling back DNS settings in Windows 11.
A safe workflow for changing and rolling back DNS settings in Windows 11.

Change DNS on the active Windows 11 connection

  1. Open Settings, then select Network & internet.
  2. Select the active connection type, Wi-Fi or Ethernet, then open its properties if needed.
  3. Find DNS server assignment and select Edit.
  4. Choose Manual. Enable IPv4 if you have IPv4 addresses to enter. Enable IPv6 only when you intend to configure valid IPv6 resolver addresses as well.
  5. Enter the preferred and alternate DNS server addresses supplied by the resolver you chose. Do not alter the IP address, subnet prefix length, or gateway fields; those are different network settings.
  6. Review the DNS encryption option, if Windows presents one, then save.

Use the resolver provider’s own setup documentation for its addresses and encrypted-DNS instructions. For example only, Cloudflare documents IPv4 addresses 1.1.1.1 and 1.0.0.1, plus IPv6 addresses 2606:4700:4700::1111 and 2606:4700:4700::1001. These are configuration examples, not a recommendation that one public resolver is best for every network.

Cloudflare: Set up 1.1.1.1 on Windows

Choose DNS over HTTPS deliberately

DNS over HTTPS (DoH) encrypts DNS queries in transit between the PC and the DNS resolver. Windows 11 can use known resolver templates automatically or accept a manual template, depending on the chosen resolver and Windows settings. Microsoft also notes Windows support for DNS over TLS.

Microsoft Learn: Domain Name System security

Encryption is useful for reducing on-path observation or modification of DNS requests. It does not make a resolver anonymous, hide website traffic by itself, or bypass a network’s access policy. If Windows offers a choice that permits plaintext fallback, it may preserve name resolution where encrypted DNS is unavailable, but queries can fall back to unencrypted DNS. If encrypted DNS is required, use the resolver’s documented template and be prepared for failures on restrictive networks.

Test the change without assuming it fixed everything

After saving, open several unrelated public websites. If you are authorized to do so, reconnect the work VPN first and then test the specific work resource that matters. A page loading in a browser confirms that at least some name resolution and connectivity work; it does not prove that every application, VPN route, or internal domain will work.

For a direct name-resolution check, open Command Prompt and run nslookup example.com. In PowerShell, Resolve-DnsName example.com is another option. A returned address indicates that the queried name resolved, but it does not independently verify the safety, speed, or policy compatibility of the selected DNS service.

Example configuration pattern

This illustrative pattern shows the fields involved, not values to copy blindly:

Windows fieldWhat belongs thereImportant limitation
IPv4 preferred DNSFirst IPv4 address from the chosen resolverUse an address published by that resolver.
IPv4 alternate DNSSecond IPv4 address from the same resolverDo not substitute an unrelated address without a reason.
IPv6 preferred/alternate DNSProvider-supplied IPv6 addresses, if configuring IPv6Leave IPv6 DNS untouched if you do not have valid values or a need to change it.
DNS encryptionThe provider-supported DoH choice or a documented manual templatePlaintext fallback is a reliability-versus-encryption decision.

If a site, VPN, or public Wi-Fi stops working

Undo the smallest possible change first. Do not reset the entire network stack merely because a manual DNS setting did not suit the network.

  1. Disconnect and reconnect the Wi-Fi or Ethernet connection, then test again.
  2. If the affected service is a work resource, connect the approved VPN before testing its name. The VPN may need to provide organization DNS.
  3. On public Wi-Fi, return DNS server assignment to Automatic (DHCP), reconnect, and complete the captive-portal sign-in.
  4. If manual DNS is still the likely cause, open the same adapter’s DNS server assignment, select Edit, choose Automatic (DHCP), and save.
  5. Only if stale DNS results seem plausible after the correct setting is restored, open Command Prompt and run ipconfig /flushdns.

Flushing the cache removes locally cached DNS entries; it does not restore a wrong server address, solve a blocked VPN, or authenticate to hotel and airport Wi-Fi. Microsoft includes ipconfig /flushdns among its Windows connectivity troubleshooting commands, but it is a targeted step rather than a first response.

Microsoft: Fix Wi-Fi connection issues in Windows

Quick rollback checklist

  • Return to the active Wi-Fi or Ethernet adapter, not a disconnected or virtual adapter.
  • Set DNS server assignment to Automatic (DHCP) and save.
  • Reconnect the network; reconnect the approved VPN before checking organization resources.
  • Run ipconfig /flushdns only if necessary.
  • Verify one public website and the service that was affected.

Manual DNS is most useful when it addresses a specific, understood requirement. When the network depends on company DNS, a VPN, filtering, local names, or a captive portal, automatic DNS is often the correct and safer setting.

Leave a Comment

Related Posts