How to Change DNS Settings on Your Router, Windows, Mac, or Phone

To change DNS settings, enter your preferred DNS provider's addresses in your router's network settings or in the network settings on a single device. Changing DNS on the router is convenient for a home network; changing it on a device is better when you only want to affect that computer or phone. Save your current settings first so you can restore them if needed.

Choose a DNS provider before you start

The Domain Name System (DNS) translates names such as example.com into IP addresses. Your internet service provider usually supplies DNS automatically, but you can choose another resolver. Different providers may offer filtering or encrypted DNS options; a new resolver does not guarantee faster browsing.

ServicePreferred IPv4 DNSAlternate IPv4 DNS
Cloudflare 1.1.1.11.1.1.11.0.0.1
Google Public DNS8.8.8.88.8.4.4
Cloudflare Families (malware and adult-content filtering)1.1.1.31.0.0.3

These addresses come from Cloudflare's setup guide and Google Public DNS documentation. Use both addresses from the same service. IPv6 networks may require separate IPv6 DNS entries.

How to change DNS settings on your router

Use this method to set a default resolver for devices connected to your home network. Router menus vary by manufacturer.

  1. Connect to your router and open its admin address in a browser. Common examples are 192.168.1.1 and 192.168.0.1; the correct address is usually the default gateway shown in your device's network details.
  2. Sign in with your router's administrator credentials.
  3. Find Internet, WAN, or DNS settings. Record the current entries.
  4. Select manual or custom DNS, enter the preferred and alternate addresses, then save. Reconnect devices if necessary.
Router Internet settings with manual Cloudflare primary and secondary DNS fields
Router WAN settings showing Cloudflare DNS addresses.

Some routers have separate DNS settings for the internet (WAN) connection and the DNS servers advertised to local devices by DHCP. Check the manufacturer's guide if your changes do not reach your devices. A device's own encrypted DNS or VPN settings can also override the router's choice. See Cloudflare's router instructions.

Router WAN DNS fields filled with Google Public DNS addresses 8.8.8.8 and 8.8.4.4
A second router configuration example using Google Public DNS.

Change DNS on Windows 11 or Windows 10

Windows 11

  1. Open Settings > Network & internet, then choose Wi-Fi or Ethernet and the relevant connection or hardware properties.
  2. Find DNS server assignment and select Edit.
  3. Choose Manual, turn on IPv4, and enter the preferred and alternate DNS addresses.
  4. Choose a supported DNS over HTTPS setting if you want encrypted DNS queries, then select Save.
Windows 11 Edit DNS settings dialog with IPv4 manual DNS entries
Windows 11 DNS server assignment with preferred and alternate values.

Windows 10: open Control Panel > Network and Internet > Network Connections, right-click the active adapter, select Properties, then open Internet Protocol Version 4 (TCP/IPv4) > Properties. Choose Use the following DNS server addresses, enter the two addresses, and select OK. The built-in DNS-over-HTTPS setting described for Windows 11 is not available in Windows 10. See Microsoft's network settings guide.

Change DNS on macOS

  1. Open Apple menu > System Settings > Network.
  2. Choose your active Wi-Fi or Ethernet connection and select Details > DNS.
  3. Under DNS Servers, select the add (+) control and enter the provider's addresses. Remove older custom entries if they should no longer be used.
  4. Select OK to apply your changes.
Mac Network DNS Servers list displaying 1.1.1.1 and 1.0.0.1
DNS server entries for a Mac network connection.

Apple documents these controls in Change DNS settings on Mac.

Change DNS on Ubuntu Linux

  1. Open Settings > Wi-Fi (or Network for wired connections) and open the active connection's settings.
  2. Under IPv4, keep the existing address-assignment method, turn off Automatic in the DNS section, and enter your DNS addresses.
  3. Select Apply, then reconnect if the new setting is not picked up.
Ubuntu Wi-Fi IPv4 network panel with Automatic DNS disabled and manual addresses
Ubuntu IPv4 settings with custom DNS servers.

On modern Ubuntu installations, NetworkManager or another network service may regenerate /etc/resolv.conf. Do not rely on editing that file directly for persistent changes. For context, see Ubuntu's network settings help.

Change DNS on Android

On Android 9 and newer, Private DNS is typically the easiest way to use an encrypted DNS service on Wi-Fi and cellular networks.

  1. Open Settings > Network & internet > Private DNS, or search Settings for “Private DNS.”
  2. Select Private DNS provider hostname.
  3. For Cloudflare, type one.one.one.one (a hostname, not the IP address 1.1.1.1) and select Save.
Android Private DNS provider hostname dialog containing one.one.one.one
Android Private DNS configured with Cloudflare’s provider hostname.

Menu names vary by phone maker. If your network blocks encrypted DNS, select Automatic to restore the default behavior. See Google's Android Private DNS guide.

Change DNS on iPhone or iPad

  1. Open Settings > Wi-Fi and tap the information (i) button beside your connected network.
  2. Tap Configure DNS > Manual.
  3. Remove unwanted existing entries, choose Add Server, and add the two IP addresses from your chosen provider.
  4. Tap Save.
iPhone Configure DNS screen with Manual selected and 1.1.1.1 plus 1.0.0.1
Manual DNS entries for an individual iPhone Wi-Fi network.

This manual change applies only to that Wi-Fi network, not cellular data. Return to Automatic to restore the network's DNS settings. See Cloudflare's iPhone setup guide.

Check your DNS settings and fix problems

Open a website after saving. On Windows, macOS, or Linux, run nslookup example.com to inspect the DNS server used for that query. To test a particular resolver directly, run nslookup example.com 1.1.1.1; this checks Cloudflare's resolver, not necessarily your system default.

Windows Command Prompt displaying nslookup example.com 1.1.1.1
A direct DNS lookup command for checking a chosen resolver.

If websites stop loading, check for a mistyped address, reconnect your network, and restore automatic DNS temporarily. Corporate networks, VPNs, browser-level secure DNS, and public Wi-Fi sign-in pages can affect which resolver is actually used. DNS filtering can block some known harmful domains, but it is not complete parental control or antivirus protection.

DNS is not a VPN: changing resolvers does not change your public IP address, reliably unlock region-restricted services, or encrypt all your internet traffic. Standard DNS may be unencrypted; DNS over HTTPS (DoH) or DNS over TLS (DoT) encrypts DNS queries where supported. If a VPN is active, use its documented DNS options to avoid unintended DNS routing.

Leave a Comment

The Side Quest Trend Explained: How to Explore Different Interests Across Apps

The Side Quest Trend Explained: How to Explore Different Interests Across Apps

Learn what the “side quest” metaphor means online, how to try hobbies and communities across apps, and how to protect your privacy, time, and boundaries.

Raw Behind-the-Scenes Content: When Unpolished Video Builds Trust and Engagement

Raw Behind-the-Scenes Content: When Unpolished Video Builds Trust and Engagement

Learn when process clips, production diaries, and quick recordings can support trust—and how to compare them fairly with polished video.

The Cozy Aesthetic and Frugal Optimism: A Practical Guide to Slow Living Online and Off

The Cozy Aesthetic and Frugal Optimism: A Practical Guide to Slow Living Online and Off

Explore cozy, low-cost ways to slow down in an always-online world, set gentler digital boundaries, and enjoy everyday routines without turning calm into another shopping project.

Social Search in 2026: How TikTok and YouTube Are Changing Everyday Discovery

Social Search in 2026: How TikTok and YouTube Are Changing Everyday Discovery

See when TikTok and YouTube help with tutorials, products, travel, and everyday questions—and how to verify dates, sponsorships, and important claims.

The Nostalgic Remix: How 1970s and 1980s Aesthetics Connect With U.S. Audiences

The Nostalgic Remix: How 1970s and 1980s Aesthetics Connect With U.S. Audiences

Explore how creators remix 1970s and 1980s music, typography, color, fashion, and video textures for U.S. audiences—with cultural context and rights in mind.

Community-First Social Media: Why Users Choose Reddit, Substack, and Discord

Community-First Social Media: Why Users Choose Reddit, Substack, and Discord

Compare Reddit, Substack, and Discord by discovery, moderation, identity, cost, and audience portability, with a practical guide for readers and creators.

Chaos Culture Explained: Gen Alpha, Fast Edits, and the New Rules of Online Video

Chaos Culture Explained: Gen Alpha, Fast Edits, and the New Rules of Online Video

Chaos culture describes fast, layered, remixable video—not a rule that every Gen Alpha viewer prefers the same style. Learn the traits, research limits, and practical creator checklist.

Best Free and Functional Android Live Wallpapers

Best Free and Functional Android Live Wallpapers

Find free Android live wallpapers for custom clocks and status panels, rotating artwork, changing scenes, and Pixel photo effects—plus setup tips.

How to Block Someone on TikTok (and Unblock Them)

How to Block Someone on TikTok (and Unblock Them)

Block someone on TikTok using the Share menu, manage unwanted commenters, check your blocked list, and learn what blocking does and does not hide.

11 Best Free and Public DNS Servers: Addresses and Features

11 Best Free and Public DNS Servers: Addresses and Features

Compare 11 free public DNS servers, including Cloudflare, Google and Quad9, with verified addresses, filtering options and Windows 11 setup tips.