Cloudwards.net may earn a small commission from some purchases made through our site. However, any earnings do not affect how we review services. Learn more about our editorial integrity and research process.
Why you can trust us
Our team of experts thoroughly test each service, evaluating it for features, usability, security, value for money and more. Learn more about how we conduct our testing.
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.
Written by Aleksandar Kochovski (Editor)
Facts checked by Jasna Mishevska (Lead Fact-Checking Editor)
Last Updated: 2023-10-23T20:50:13+00:00
All our content is written fully by humans; we do not publish AI writing. Learn more here.
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.
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.
(Select one)
(Select all)
(Select one)
Time’s up
We rewrote the guide to include separate steps for each device type and operating system.
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.
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.
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.
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.
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.
IPv4
IPv6
IPv4
IPv6
IPv4
IPv6
Here are a few steps showing you how to change DNS settings in Windows.
Press the Windows key and open the “settings” menu, then click on “network & internet.”
Choose either the “WiFi” or “Ethernet” tab, depending on your internet connection. Within that tab, select the network you’re connected to.
Scroll down to “IP settings” and click on the “edit” button under “IP assignment.”
Change your IP settings to “manual” and toggle on the “IPv4” option.
Under “preferred DNS,” enter the IP address of your preferred DNS server. For example, 1.1.1.1 is Cloudflare’s primary DNS server address. Next, enter the secondary DNS server’s IP (1.0.0.1 for Cloudflare). You can find these DNS addresses on the provider’s website. Finally, click “save” and reboot your device.
If you’re a Mac user, things are even simpler. Here’s how to change your DNS settings on your macOS device.
Select “system preferences” from your dock and click “network.”
Select your connection (WiFi or Ethernet) and click on “advanced.”
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.
You can only change your DNS manually on Android 9 Pie and above. Thankfully, it only takes a few taps to do it.
Open Android’s settings and tap on “connections.”
Tap on “more connection settings.”
Tap on “private DNS.”
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.
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 the settings app and tap on “WiFi.”
Tap on the “i” icon next to your active connection.
In the window that opens, scroll down to “configure DNS” and tap on it.
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.
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.
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.
Changing DNS server settings can result in better privacy and security, and faster connection speeds.
8.8.8.8 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.
Aleksandar Kochovski (Editor)
After a brief stint in architecture and a tango with teaching, Aleksandar is now dancing to the beat of his own drum as a tech writer, merging his passions for technology and literature. When he’s not hidden behind his computer screen, you can find him photographing the streets of Skopje or cooking quesadillas for his friends at home.
Learn more about our editorial team and our research process.
One thought on “How to Change DNS Servers in 2024: Get a Different DNS Address”
Thanks for sharing this information. I have a question for you. I have cyber ghost installed in my cell phone and personal computer. I just installed cloud flare 1.1.1.1 app and saw it installed a VPN configuration. Now I see two VPNs active in my cellphone. Does it maje sense having both connected, are they both working at the same time?
Also interesting
Facebook Privacy Settings: How to Make Facebook Private in 2024
Best VPN Services in 2024: 10+ Providers for Streaming, Torrenting & More
99 Free Privacy Tools for 2024: Online Security Apps for Nothing
We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.
© 2007-2024 Cloudwards.net

More Stories
From Commitments to Practice: Internet Society’s Priorities for WSIS+20 Implementation
Final Results of the 2026 Internet Society Board of Trustees Elections and IETF Selections
Community Snapshot—March