How to Change DNS Servers in 2023: Get a Different DNS Address
Changing your DNS server to a more private option is easy to do and can result in better privacy, security and speeds. The process varies for different operating systems, though. Read on to learn how to change DNS settings on Windows, Mac, Android, iOS and routers.
Every time you connect to a website, there’s a DNS server in the background quietly handling all of your communication. DNS servers translate your browser input into language that’s easier for website servers to understand, so they’re crucial to how the web works.
However, the operator of the DNS server you use can also see all of your online traffic. This is why it’s crucial to know how to change DNS servers.
- Changing your DNS settings has numerous benefits, like increased speed, security and privacy.
- Setting up a custom DNS server is easy to do, though the process differs between devices.
- Besides a manual setup, you can also change your DNS with a VPN. This doesn’t require any kind of setup apart from installing the VPN app.
Using a secure DNS server, like the ones operated by VPNs, can keep your browsing data private and inaccessible to your internet service provider (ISP), the government and hackers. Stick around as we explain what a domain name system (DNS) is, how it works and how you can change your DNS server.
11/21/2022 Facts checked
We rewrote the guide to include separate steps for each device type and operating system.
Changing DNS server settings can result in better privacy and security, and faster connection speeds.
220.127.116.11 is the address of Google Public DNS, which isn’t the best choice when it comes to privacy.
Changing your DNS configuration manually usually requires that you go into your device’s settings and input the DNS server addresses of your chosen provider.
What Is a DNS?
In order to understand each other, machines communicate using languages that aren’t easy for the average person to understand and use. Every device on the internet has its own IP address that it uses to communicate with other devices, like the way you need a mailing address to send a Christmas card to your grandma.
However, numerical IP addresses are hard to remember, which is why we use the domain name system instead. The domain name system, or DNS for short, assigns a domain name to every IP address belonging to a website.
Thanks to the domain name system, you can access a website by simply typing its name into the browser (say, Google.com) instead of entering a complicated IP address, like 192.168.10.254.
Why You Need to Change Your DNS Provider
The above operation is known as a DNS request or DNS query. When you send a DNS request to a website, a DNS server translates the DNS address into its corresponding IP address. This means that your DNS traffic needs to pass through a DNS server before it can reach the target website or online server.
By default, your internet service provider (ISP) handles your DNS requests via its own DNS servers. This allows your ISP to see all of your traffic data. According to the FTC, ISPs collect a lot more data than is necessary and use legal loopholes to sell it to third parties, like advertisers. If you want your data to stay private, you need to change your DNS server to a private one.
Additionally, many DNS services let you control the content you can access. For example, they might offer a family-friendly DNS that lets you set parental controls, or a malware-blocking DNS that prevents your device from communicating with malicious websites such as phishing sites. These specialty DNS servers usually have a different address than the standard one.
Finally, switching your DNS provider can increase your internet speeds. Cloudflare claims to be the fastest DNS resolver available, while Google Public DNS has all the resources of the search giant behind it — including its worldwide server network — guaranteeing fast speeds around the globe. Depending on your ISP, switching to one of these DNS services might result in a faster connection.
How to Change DNS Servers Using a VPN
The easiest way to change your DNS server is to use a VPN. Most reliable VPNs operate their own DNS servers, which means that your DNS requests are subject to the VPN’s no-logs policy. This policy promises to retain no record of your internet activity.
Setting up a modern commercial VPN is as easy as installing a VPN and switching it on. This will automatically connect you to a server (usually the fastest or nearest one) and change your DNS server to a VPN-operated one.
Changing Your DNS Manually
However, if you don’t want to purchase a VPN subscription, you can use a free third-party DNS server. Cloudflare is a popular choice. It only keeps logs for 24 hours, and it’s our recommended custom DNS server.
OpenDNS is another popular DNS provider, though it’s operated by Cisco and doesn’t have a zero-logs option. Google Public DNS is another free DNS option, but it’s subject to Google’s own privacy issues.
DNS Server Addresses
To change your DNS server settings manually, you’ll need to input the DNS server addresses of the provider you want to use. The following DNS server addresses belong to Cloudflare, OpenDNS and Google Public DNS for internet protocol version four (IPv4) and version six (IPv6) connections.
- Primary DNS address: 18.104.22.168
- Secondary DNS address: 22.214.171.124
- Primary DNS address: 2606:4700:4700::1111
- Secondary DNS address: 2606:4700:4700::1001
- Primary DNS address: 126.96.36.199
- Secondary DNS address: 188.8.131.52
- Primary DNS address: 2620:119:35::35
- Secondary DNS address: 2620:119:53::53
Google Public DNS
- Primary DNS address: 184.108.40.206
- Secondary DNS address: 220.127.116.11
- Primary DNS address: 2001:4860:4860::8888
- Secondary DNS address: 2001:4860:4860::8844
How to Change DNS Server in Windows
Here are a few steps showing you how to change DNS settings in Windows.
- Access Your Network Settings
Press the Windows key and open the “settings” menu, then click on “network & internet.”
- Find Your Current Network
Choose either the “WiFi” or “Ethernet” tab, depending on your internet connection. Within that tab, select the network you’re connected to.
- Access the Network’s DNS Settings
Scroll down to “IP settings” and click on the “edit” button under “IP assignment.”
- Toggle on Custom DNS
Change your IP settings to “manual” and toggle on the “IPv4” option.
- Input Your Chosen Provider’s DNS Server Address
Under “preferred DNS,” enter the IP address of your preferred DNS server. For example, 18.104.22.168 is Cloudflare’s primary DNS server address. Next, enter the secondary DNS server’s IP (22.214.171.124 for Cloudflare). You can find these DNS addresses on the provider’s website. Finally, click “save” and reboot your device.
How to Change DNS Settings in macOS
If you’re a Mac user, things are even simpler. Here’s how to change your DNS settings on your macOS device.
- Access Your Network Settings
Select “system preferences” from your dock and click “network.”
- Find Your Current Connection
Select your connection (WiFi or Ethernet) and click on “advanced.”
- Enter the Custom DNS Server Addresses
In the “advanced” window, navigate to the DNS tab and click on the plus symbol under the “DNS servers” box. Type in the primary and secondary DNS server addresses for your preferred DNS provider. Click on “OK” to close the “advanced” window, then click on “apply” in the “network” window to apply your custom DNS settings.
How to Change DNS Servers on Your Android Device
You can only change your DNS manually on Android 9 Pie and above. Thankfully, it only takes a few taps to do it.
- Open Your Connection Settings
Open Android’s settings and tap on “connections.”
- Open the Detailed Connection Settings
Tap on “more connection settings.”
- Open the Private DNS Settings
Tap on “private DNS.”
- Enter Your Chosen DNS Provider’s Hostname
Select “private DNS provider hostname” and add the hostname of the service you chose. Keep in mind that this is not the same as the DNS server address. For example, one.one.one.one is Cloudflare’s hostname. Finally, just tap on “save” to apply the settings.
How to Configure DNS Servers in iOS
Finding the DNS settings in iOS isn’t as obvious as it is for Android, but it’s still pretty straightforward if you follow the steps below.
- Open Your WiFi Connection Settings
Open the settings app and tap on “WiFi.”
- Access Your Connection’s Properties
Tap on the “i” icon next to your active connection.
- Open the Custom DNS Settings
In the window that opens, scroll down to “configure DNS” and tap on it.
- Add Your Chosen DNS Server
Select “manual” and then tap on “add server.” Add the IP addresses for the DNS servers you want to use. Remember to add the addresses for both the primary and secondary DNS servers. Finally, tap on “save” to finish the setup.
How to Change DNS Settings on Your Router
There’s one major benefit to setting up a custom DNS on your router in that your router handles the traffic for all the devices connected to your home network. This means that all of your internet traffic will be routed through your chosen DNS server without having to set it up on each device manually.
However, not all routers will let you set up a custom DNS server. Routers that support custom firmware like DD-WRT or Tomato will usually allow you to change DNS settings, but most ISP-provided routers will not have this feature. Here is a list of some router manufacturers that let you change DNS servers:
That said, even routers that do support DNS switching will have drastically different setup instructions, so you’ll have to look for a guide on the router manufacturer’s website. You can also switch DNS providers by installing a VPN on your router, though you’ll need to find a guide for your specific router on the VPN’s website.
How to Change DNS Server Addresses With a Smart DNS Service
Smart DNS is a way to access geoblocked content (content that is restricted to a certain geographic area). It changes your DNS server while removing geographically identifying data from your traffic, which lets you access select streaming services in certain popular locations, like the U.S. and U.K. Learn more in our comprehensive Smart DNS guide.
This type of service is usually offered by VPNs as an alternative to using a VPN to unblock content for devices that don’t support VPNs natively, like some smart TVs.
These include Surfshark’s Smart DNS, NordVPN’s SmartDNS and ExpressVPN’s MediaStreamer. You should be able to find a guide on how to set up your VPN’s smart DNS service on your device on the VPN’s website.
Changing your DNS server to a free public DNS is an easy way to improve your online privacy, as long as you choose a trusted DNS provider. DNS providers can do more than just resolve your DNS queries; they can block malware and pornographic content, and even speed up your connection.
Have you changed your default DNS server? What DNS provider have you used? Have you tried changing your DNS using a VPN? Let us know in the comments below, and as always, thank you for reading.