The place to learn about your Mac. Tips and tutorials for novices and experts.

How to Change Your Mac's DNS Servers

Your Mac uses something called the Domain Name System (DNS) to access websites. It's a system invisible to you, the user, and most people don't even know it exists. But if the DNS servers you're using are slow or unavailable, websites will load slowly or won't load at all. That's why it's important to learn about DNS and consider changing your DNS servers. In this tutorial, we'll show you everything you need to know about DNS to speed up surfing and ward off potential problems.

DNS Crash Course

To understand how DNS works, you need some background information. Every website connected to the Internet is assigned something called an IP address, which is a little like a home or apartment's street address. Just like a friend could find your house if she had your address, your computer can load a website if you type its IP address in to a web browser.

The problem is that IP addresses can be difficult to find and remember. DNS was created to map memorable domain names, like, onto IP addresses, like, which is the CNN website's IP address.

When you type in a URL in to your web browser's address bar and hit Enter, your computer contacts a DNS server to find the IP address associated with the domain name. DNS is essentially a directory of all the websites in the world. Imagine a giant phonebook with the IP addresses for all of the websites on the Internet. That's DNS.

Why You Should Change Your DNS Servers

Every Internet service provider operates their own DNS servers. When you purchase Internet access from a company like Comcast, your Mac will automatically use Comcast's DNS servers. That's not a problem unless the service provider's DNS servers become unavailable. At that point, your Mac won't be able to load any websites.

Fortunately, there are other companies out there that offer free DNS servers that you can use with your Mac. Many of these services are faster, and some companies have never experienced a service interruption. Plus, some DNS providers offer additional services for free, like malware protection and parental controls.

Selecting Another DNS Provider

There are dozens of free DNS servers out there. How do you know which ones to use? We'll make it easy for you. The two best DNS services are OpenDNS and Google Public DNS, both of which are free, fast, and reliable.

Google's service "never blocks, filters, or redirects users," which is great for users who just want the unfiltered Internet in all of its glory. OpenDNS prevents you from accessing webpages that are known to host malware that could harm your Mac. Plus, if you register for a free OpenDNS account, you can use parental controls to restrict access to adult content and other Internet nasties.

Changing Your Mac's DNS Servers

Once you've settled on a DNS service provider, it's time to update your Mac's DNS servers. Here's how:

  1. From the Apple menu, select System Preferences. The window shown below appears.

  2. Select Network. The window shown below appears.

  3. Select a network interface from the sidebar. By default, your primary network interface is selected. If you use more than one interface to connect to the Internet, use these instructions to update the DNS servers for all of the interfaces.

  4. Click Advanced.

  5. Click the DNS tab. The window shown below appears.

  6. Click the + button to add a new DNS server.
    • To use OpenDNS, enter and
    • To use Google DNS, enter and
  7. Click OK.

  8. Click Apply.

  9. Test your new DNS servers to make sure they're working.
  10. If the DNS servers aren't working, try rebooting your computer. Test the servers again when your computer turns back on.

That's it! You've updated your Mac's DNS servers!

Related Articles

Meet Your Macinstructor

Matt Cone, the author of Master Your Mac, has been a Mac user for over 20 years. A former ghost writer for some of Apple's most notable instructors, Cone founded Macinstruct in 1999, a site with OS X tutorials that boasts hundreds of thousands of unique visitors per month. You can email him at: [email protected].


Copyright © 2016 Macinstruct. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.