To change the DNS server on Windows, open the active network adapter's Properties and edit its DNS fields. On a Mac, open the connection's Details and choose DNS. Keep IP assignment unchanged unless your network requires a change.
Write down the current DNS setting before changing it. You can then restore it if the replacement fails or your workplace requires a particular DNS server.
In this guide
Pick the connection and the replacement addresses
DNS looks up the address your computer needs to connect to a website when you enter its name. A different DNS provider can help with a failed lookup, but it won't repair weak Wi-Fi, a disconnected cable, or an internet-provider outage.
Choose the provider before opening the settings. For example, Google Public DNS supplies 8.8.8.8 and 8.8.4.4 for IPv4. Enter those as two separate server addresses, not as one combined value.

Google also provides 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6. Use the IPv4 or IPv6 addresses your connection needs. IPv6 addresses don't belong in an IPv4-only field.
I'd change one computer first rather than the whole home network. You can compare the result without changing every device. If you intend a network-wide change, the router DNS instructions cover that separate job.
For an employer's computer or a work VPN, ask IT before replacing company DNS. Public providers don't necessarily know private company names. A setting that opens public websites can still break internal servers or work applications.
Set the Windows adapter's DNS addresses
The classic adapter Properties window lets you change DNS without assigning a new static IP address. This is useful when newer Settings pages show IP assignment and DNS controls together and you're unsure which field changes what.
- Open Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
- Right-click the connection you're using, such as Wi-Fi or Ethernet, and select Properties. Approve the administrator prompt if shown.
- On Networking, select Internet Protocol Version 4 (TCP/IPv4), then Properties.
- Record the current DNS choice and any manually entered addresses. Leave the upper IP-address controls as they were.
- Select Use the following DNS server addresses.
- Enter 8.8.8.8 as Preferred DNS server and 8.8.4.4 as Alternate DNS server, then click OK and close the remaining Properties dialog.
The adapter dialog works on Windows 10; Windows 11 keeps these controls too. The provider's configuration instructions give the same IPv4 and IPv6 addresses and explain reversing the change with your previous values.
If the Advanced > DNS tab contains a manually configured server list, record that list too. Follow your network's instructions when replacing it; leaving conflicting old entries can mean you're still using a different provider.
Wi-Fi and Ethernet are separate adapters. Changing Ethernet doesn't change the Wi-Fi adapter you switch to later. Repeat the procedure for a second connection only if you want that connection to use the same DNS provider.
For IPv6, return to the adapter's Networking list and open Internet Protocol Version 6 (TCP/IPv6) > Properties. Enter the provider's IPv6 addresses in its DNS fields. Leave IPv6 enabled.
Understand the newer Windows Settings controls
Windows also offers configuration under Settings > Network & internet. Wi-Fi settings belong to the selected wireless network; Ethernet settings belong to the wired network. Check which connection you're editing.
Depending on the version, the page offers DNS server assignment or DNS fields alongside manual IP settings. Use the classic dialog if it asks for an IP address, subnet, and gateway you don't intend to change.
Microsoft's network settings guide explains automatic assignment and manual DNS fields. An address such as 8.8.8.8 is a DNS server, not the IP address to assign to your PC.
On supported Windows 11 configurations, DNS over HTTPS encrypts DNS requests. Its automatic-template option uses the provider's supported configuration. Windows 10 doesn't offer that system setting.
Entering a server address in the classic Properties dialog doesn't configure every app to use encrypted DNS. Check encryption separately through the supported controls if you need it, after testing the provider change.
Set DNS for the Mac's active network service
On a current Mac, open Apple menu > System Settings > Network. Select the active network service, click Details, then choose DNS. Intel and Apple silicon models both use these controls.

Write down any addresses you've already added manually. In DNS Servers, use the add control to enter 8.8.8.8, then add 8.8.4.4 as a separate entry. Remove old manual entries only if you mean to replace that provider.
Confirm the change with OK. Don't put these addresses under Search Domains, which serves a different purpose. If your Mac offers another confirmation such as Apply, complete that before testing.
For a Mac still using System Preferences, select Network, select the connection, and choose Advanced > DNS. Add the addresses, click OK, then Apply. The older preference pane won't look like current System Settings.
A VPN or managed configuration can supply its own DNS. If the DNS list is locked or company sites stop working, ask the administrator about that network service instead of deleting the management profile.
Check the result and reverse a failed change
Open a new browser window and try several known websites. Try the address that failed before the change, then an unrelated site. Check that the pages actually load. Saving new DNS addresses won't tell you whether those websites open.
On Windows, open Command Prompt and run nslookup example.com. Its server information shows which DNS server handled that lookup. This checks Windows DNS; a browser with its own Secure DNS provider may use a different server.
For a Chrome-only error, the DNS address lookup checks explain its Secure DNS setting. Don't keep replacing the operating system's addresses when only a browser's custom provider is failing.
To undo the Windows change, return to the same protocol's Properties and restore the recorded addresses or Obtain DNS server address automatically. On a Mac, remove the entries you added and restore any manual entries you replaced.
When the affected provider is 1.1.1.1, the Cloudflare resolver checks compare its two addresses and distinguish a failed lookup from WARP trouble.
If both settings fail, give your provider or IT team the failed addresses and results from another device or network. A computer DNS change can't repair the website's own records, so include whether other sites work.
The Short Version
Record the old setting and change DNS on the active adapter or network service. Keep IP assignment unchanged, use the provider's matching IPv4 or IPv6 addresses, and test several sites. Restore the original setting if access gets worse.
Checked December 3, 2026.







