• August 14, 2026
  • 6 mins
How to Change DNS Server
How to Change DNS Server

Is your internet loading slower than it should, or do you keep landing on websites that feel oddly unsafe? The culprit might not be your Wi-Fi at all — it could be your DNS settings. Learning how to change DNS server settings is one of the easiest, most overlooked ways to speed up your browsing and strengthen your online security, and you don’t need to be a tech expert to do it.

Your DNS (Domain Name System) server acts like the internet’s phonebook, translating website names like “xcitium.com” into IP addresses your device can understand. If your DNS server is slow, outdated, or compromised, it can expose you to phishing redirects, DNS hijacking, and sluggish load times. In this guide, we’ll walk through how to change DNS server settings on Windows, Mac, and your router, plus explain why switching to a secure DNS provider matters for cybersecurity.

Why Changing Your DNS Server Matters for Security

Before diving into the steps, it helps to understand why this small setting has a big impact on internet security. Your Internet Service Provider (ISP) automatically assigns a default DNS server, but these default servers aren’t always optimized for speed or protected against threats.

Switching to a secure, trusted DNS provider can help you:

  • Block access to known malicious or phishing websites automatically
  • Reduce the risk of DNS spoofing and man-in-the-middle attacks
  • Improve page load times with faster DNS resolution
  • Bypass unnecessary ISP-level tracking and throttling
  • Add an extra layer of protection against DNS hijacking attempts used in cyberattacks

For anyone focused on cybersecurity, this is a simple, high-impact change that takes just a few minutes.

How to Change DNS Server on Windows

Windows makes it straightforward to update your DNS settings through the Control Panel or Settings app.

Steps to Change DNS Server on Windows 10/11

  1. Right-click the network icon in your taskbar and select Open Network & Internet Settings.
  2. Click Change adapter options.
  3. Right-click your active connection (Wi-Fi or Ethernet) and select Properties.
  4. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  5. Choose Use the following DNS server addresses.
  6. Enter your preferred DNS server addresses (for example, a public DNS provider’s primary and secondary addresses).
  7. Click OK, then restart your browser to apply changes.

This method lets you manually override your ISP’s default DNS server with a faster or more secure alternative.

How to Change DNS Server on Mac

macOS users can adjust DNS settings just as easily through System Settings.

Steps to Change DNS Server on macOS

  1. Open System Settings and click Network.
  2. Select your active connection (Wi-Fi or Ethernet) and click Details (or Advanced, depending on macOS version).
  3. Go to the DNS tab.
  4. Click the + button and enter your preferred DNS server address.
  5. Remove any outdated or unwanted DNS entries.
  6. Click OK, then Apply to save changes.

Once updated, your Mac will use the new DNS server for all future domain lookups.

How to Change DNS Server on Your Router (Network-Wide)

If you want every device on your home or office network to use the updated DNS settings — without configuring each device individually — changing DNS at the router level is the most efficient approach.

Steps to Change DNS Server on a Router

  1. Open a browser and enter your router’s IP address (commonly 192.168.1.1 or 192.168.0.1).
  2. Log in using your router’s admin credentials.
  3. Navigate to the WAN or Internet Settings section.
  4. Locate the DNS Server fields and switch from “Automatic” to “Manual.”
  5. Enter your preferred primary and secondary DNS addresses.
  6. Save changes and restart your router.

This network-wide DNS change is especially useful for households or small businesses looking to apply consistent internet security protections across all connected devices.

Choosing a Secure and Fast DNS Provider

Not all DNS servers are created equal. When deciding which one to switch to, consider these factors:

  • Speed — Faster DNS resolution reduces page load times.
  • Security features — Look for providers offering malware and phishing protection built into DNS resolution.
  • Privacy policy — Choose providers with a clear no-logging policy to prevent tracking of your browsing habits.
  • Reliability — A provider with high uptime ensures you rarely experience DNS-related outages.

Public DNS providers vary in their approach to filtering, speed, and privacy, so it’s worth comparing a few before settling on one for long-term use.

Common Issues When Changing DNS Server Settings

Even with the right steps, you might run into a few snags:

  • Websites won’t load after the change — Flush your DNS cache using ipconfig /flushdns on Windows or restart your router to clear cached records.
  • Old DNS settings keep reappearing — This usually happens when your router is set to “Automatic” and overrides manual device settings; make the change at the router level instead.
  • Slower speeds after switching — Some DNS providers perform differently depending on your geographic location; test a couple of options to find the fastest one for your region.

Frequently Asked Questions (FAQ)

1. How do I know which DNS server I’m currently using?

On Windows, open Command Prompt and run ipconfig /all, then look for the “DNS Servers” entry. On Mac, check System Settings > Network > Advanced > DNS tab to view your current configuration.

2. Is changing my DNS server safe?

Yes, changing your DNS server is safe as long as you switch to a reputable, well-known provider. Avoid using unfamiliar or unverified DNS servers, as malicious DNS servers can redirect you to phishing sites without your knowledge.

3. Will changing my DNS server speed up my internet?

It can improve browsing speed by reducing the time it takes to resolve website addresses, though it won’t increase your overall internet bandwidth. The improvement is most noticeable in faster page load times, not download speeds.

4. Do I need to change DNS settings on every device, or just my router?

Changing DNS settings at the router level applies the change to every device connected to that network automatically. Changing it on an individual device only affects that specific device’s browsing.

5. Can changing my DNS server protect me from hackers?

A secure DNS server can reduce your exposure to certain threats like DNS hijacking, phishing redirects, and malicious domain resolution, but it should be used alongside broader cybersecurity measures like firewalls and endpoint protection, not as a standalone defense.

Final Thoughts

Now that you know how to change DNS server settings on Windows, Mac, and your router, you’re better equipped to boost your browsing speed and reduce exposure to common DNS-based threats. It’s a small configuration change with a meaningful impact on both performance and internet security.

However, DNS changes alone can’t protect your network from every modern cyber threat. For comprehensive protection against phishing, malware, and advanced network intrusions, it’s worth pairing secure DNS practices with a complete cybersecurity solution. Request a free demo with Xcitium today and see how end-to-end protection keeps your network secure well beyond DNS settings.

Like what you see? Share with a friend.

Please give us a star rating based on your experience.

22 votes, average: 2.14 out of 522 votes, average: 2.14 out of 522 votes, average: 2.14 out of 522 votes, average: 2.14 out of 522 votes, average: 2.14 out of 5 (22 votes, average: 2.14 out of 5, rated)
Patented Threat Prevention
Built For Today

Zero-day malware can't be stopped from entering,
but Xcitium prevents damage entirely. Zero infection.

By clicking “Accept All" button, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookie Disclosure

Manage Consent Preferences

When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.

These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.