The Domain Name System (DNS) is a core part of how the internet works, translating website names into IP addresses. By default, your internet provider assigns DNS servers automatically, but switching to a custom DNS—such as Google DNS, Cloudflare, or OpenDNS—can improve speed, privacy, and security.
Changing your DNS settings can also help fix connectivity issues, bypass certain restrictions, and enhance browsing performance. The process varies slightly depending on your device, but it’s generally straightforward.
In this guide, we’ll walk you through how to change your DNS server on Windows, macOS, Linux, smartphones (Android/iPhone), and routers.
Common DNS Servers You Can Use
Before proceeding, here are some popular public DNS servers:
- Google DNS
8.8.8.88.8.4.4
- Cloudflare DNS
1.1.1.11.0.0.1
- OpenDNS
208.67.222.222208.67.220.220
How to Change DNS on Windows 11
- Press Windows + I to open Settings.
- Go to Network & Internet.
- Select Wi-Fi or Ethernet (based on your connection).
- Click your active network.
- Scroll to IP settings and click Edit.
- Choose Manual.
- Enable IPv4.
- Enter your preferred and alternate DNS:
- Example:
1.1.1.1and1.0.0.1
- Example:
- Click Save.
How to Change DNS on macOS
- Click the Apple menu and open System Settings (or System Preferences).
- Go to Network.
- Select your active connection (Wi-Fi or Ethernet).
- Click Details (or Advanced).
- Go to the DNS tab.
- Click the + (plus) button.
- Add your DNS server addresses.
- Click OK, then Apply.
How to Change DNS on Linux (Ubuntu)
- Open Settings.
- Click Network.
- Select your active connection.
- Click the gear icon next to it.
- Go to the IPv4 tab.
- Change Method to Automatic (DHCP) addresses only.
- Enter DNS servers (e.g.,
8.8.8.8, 8.8.4.4). - Click Apply.
- Restart the network connection.
How to Change DNS on Android
- Open Settings.
- Go to Network & Internet.
- Tap Private DNS.
- Select Private DNS provider hostname.
- Enter a hostname such as:
dns.google(Google DNS)one.one.one.one(Cloudflare)
- Tap Save.
How to Change DNS on iPhone (iOS)
- Open Settings.
- Tap Wi-Fi.
- Tap the (i) icon next to your network.
- Scroll down and tap Configure DNS.
- Select Manual.
- Remove existing entries.
- Add new DNS servers (e.g.,
1.1.1.1,1.0.0.1). - Tap Save.
How to Change DNS on Your Router
Changing DNS on your router applies it to all devices on your network.
- Open a web browser.
- Enter your router’s IP address (commonly
192.168.1.1or192.168.0.1). - Log in to the router admin panel.
- Navigate to WAN, Internet, or DNS settings.
- Replace the default DNS with your preferred DNS servers.
- Save the changes.
- Restart the router if required.
Conclusion
Changing your DNS server can improve internet speed, enhance privacy, and provide better security across your devices. Whether you’re using Windows, macOS, Linux, Android, iPhone, or a router, the process is simple and can be completed in just a few steps.
By switching to reliable DNS providers like Google DNS or Cloudflare, you can enjoy faster and more secure browsing. If you encounter any issues, you can always revert to your default DNS settings at any time.