Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave
  • Home
  • Mac & MacOS Help
  • How Can I Change DNS Servers to Speed Up My Mac?

How Can I Change DNS Servers to Speed Up My Mac?

December 2, 2022 / Dave Taylor / Mac & MacOS Help / No Comments

I was telling my Dad that whenever I go to a new Web site, the first page load is crazy slow, though subsequent pages are really snappy. He said it’s a “DNS Server” issue. How can I fix that on my iMac?

While it’s easy to imagine that your Internet Service Provider (ISP) is offering up the equivalent of a “power line” allowing your devices to access the greater Internet, there’s more to the service than that. One of the biggest and most important tasks that an ISP aids is domain name lookup. We all prefer going to “netflix.com” rather than remembering the number 192.0.0.69, even though they’re the same thing. One of the unsung heroes of the Internet as we know and enjoy it is the system that does those lookups, a distributed system known as Domain Name Server or DNS.

There’s a lot of caching going on with DNS lookups too, which is why even if you have a really slow primary DNS server, subsequent pages are faster: Once you know that 192.0.0.69 = netflix.com, your Web browser can then use that information for the next few pages your request without “looking up” the domain IP address again. IP addresses are those 4-number, dot-separated sequences, also known as IP4 for just this reason.

Some ISPs have dedicated computers that just serve as DNS lookup devices, often delivering search results in tens of milliseconds. Search for an obscure domain name that’s hosted overseas and your computer won’t know it, your ISP might not know it, so the query will eventually bounce to a TLD or top-level domain server like “.tv” or “.net”. All of this tends to happen in fractions of a second so we rarely notice when everything’s working well.

But what you describe sounds exactly like a hosting company with a broken or misconfigured DNS server; the first query is always going to be a bit slower than subsequent queries, but the difference should be barely noticeable, not something where you’re wondering if you’re still online at all.

Fortunately, there are open DNS servers that you can use instead of your ISP’s faulty device that will work quite a bit faster and generally are better maintained too. Top among those is the Google Public DNS Server, known by its IP4 address of 8.8.8.8.

FINDING YOUR CURRENT DNS SERVER ADDRESS

Let’s start by figuring out your current DNS server and how fast it is. This is best done on a Mac by opening up the Terminal app. Yes, time to trek into the digital jungle! You can find Terminal in the Utilities folder within Applications. Fire it up and you’ll have a command line interface where you have to type in commands. Old school, right?

The command you want to use is called “dig“, and you can follow it by a domain name. For example, “dig yahoo.com” (you can safely ignore the content to the left of your cursor in Terminal for this task):

mac dns server change lookup tcp/ip - dig command

I’ve highlighted both the query time – a respectable 55 milliseconds – and the address of the server that the current Internet provider is allowing me to use: 10.0.44.254. To see how your system is working, try to pick a fairly random domain name that you haven’t visited in at least a few days. Try louvre.fr or ayersrockresort.com.au to see how fast – or slowly – it’s resolved into its IP address.

In this instance, I’m on a fast connection: 55ms is an entirely acceptable speed for a domain name lookup. But what if it were 970ms or even more? Every computer will let you change the DNS server address, typically found in the TCP/IP or Internet connection settings and preferences.

CHANGE DNS SERVER ADDRESS IN MACOS

MacOS 13 Ventura dramatically changed the appearance of the System Settings area, but the functionality is still the same as previous version of the operating system. Go to “System Settings…” off the Apple menu, then choose “Wi-Fi” from the list of possibilities:

mac dns server change lookup tcp/ip - mac system settings internet

Y0u can see that I’m connected to the local wireless network RED FROG COFFEE. Click on “Details…” and you’ll be able to see (and change) all sorts of settings and options related to this particular network connection. Then click on “DNS” on the left side to check out the DNS Server or Servers. Here at Red Frog, we’ve already ascertained that the DNS Server is 10.0.44.254:

mac dns server change lookup tcp/ip - system settings wifi details dns

If you’re having DNS problems, the address in the top box is exactly the problem. Replace it by clicking on the “+” button and simply typing in the new address, like 8.8.8.8:

mac dns server change lookup tcp/ip - changed dns server to google 8.8.8.8

The interaction is a bit clumsy because I think there’s an interface bug in the code here in the current version of MacOS, but click “OK” then go back into the “Details…” > “DNS” area to confirm it worked:

mac dns server change lookup tcp/ip - updated with new DNS server address

Looks good! Congrats, you’ve just changed the DNS Server address for your current Internet connection to speed up your interaction on the Web.

TESTING A NEW OPEN DNS SERVER LOOKUP

To test and see if it works and whether it’s faster, simply go back to the Terminal and type in “dig” followed by a new domain that you haven’t searched before. Perhaps tajmahal.gov.in or wwf.mg if you want something exotic and rarely visited. This time I’m just going to show the very bottom portion of that “dig” command:

mac dns server change lookup tcp/ip - faster dns server google open dig lookup

This time notice that the lookup was faster – 45ms instead of 55ms – and that it used the Google Public DNS Server at 8.8.8.8 to do the job. Nice. I just sped up my Web interaction and experience and I bet you did too if you’ve switched.

That’s it. Test out the DNS lookup with your ISP and if it’s slower than you’d like, try switching to the Google service or another open DNS choice to see if that speeds things up for you. Good luck!

Pro Tip: I’ve been writing about the Mac since the very first system was released. Back in the era of the “fishbowl” design! Heck, I started my computing career on an Apple II. Please check out my extensive Mac Help Library while you’re visiting. Thanks!

About the Author: Dave Taylor has been involved with the online world since the early days of the Internet. Author of over 20 technical books, he runs the popular AskDaveTaylor.com tech help site. You can also find his gadget reviews on YouTube and chat with him on Twitter as @DaveTaylor.

Let’s Stay In Touch!

Never miss a single article, review or tutorial here on AskDaveTaylor, sign up for my fun weekly newsletter!
Name: 
Your email address:*
Please enter all required fields
Correct invalid entries
No spam, ever. Promise. Powered by FeedBlitz
Please choose a color:
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!
dns server, mac dns, open dns server

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Recent Posts

  • How to Check Energy Recommendations on your Windows Laptop
  • How Do I Customize New Tab Windows in Safari for Mac?
  • Can AI-Generated ChatGPT Text Be Accurately Identified?
  • How to Perform a Microsoft Account Security Audit and Checkup
  • How Can I Customize My Linux Dock / Taskbar?

On Our YouTube Channel

How to: Replace a Switchbot Door Sensor Battery

EMEET Luna vs INNOTRIK Studio Bluetooth Speakerphones -- DEMOS & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help (163)
  • Android Help (226)
  • Apple iPad Help (147)
  • Apple Watch Help (53)
  • Articles, Tutorials, and Reviews (346)
  • Auto Tech Help (15)
  • Business Advice (200)
  • ChromeOS Help (31)
  • Computer & Internet Basics (778)
  • d) None of the Above (166)
  • Facebook Help (383)
  • Google, Chrome & Gmail Help (188)
  • HTML & Web Page Design (247)
  • Instagram Help (49)
  • iPhone & iOS Help (623)
  • iPod & MP3 Player Help (173)
  • Kindle & Nook Help (99)
  • LinkedIn Help (88)
  • Linux Help (173)
  • Linux Shell Script Programming (89)
  • Mac & MacOS Help (911)
  • Most Popular (16)
  • Outlook & Office 365 Help (33)
  • PayPal Help (68)
  • Pinterest Help (54)
  • Reddit Help (19)
  • SEO & Marketing (82)
  • Spam, Scams & Security (95)
  • Trade Show News & Updates (23)
  • Twitter Help (220)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (947)
  • Wordpress Help (206)
  • Writing and Publishing (72)
  • YouTube Help (47)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (62)

Archives

Social Connections:

Ask Dave Taylor


Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook



microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2023 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy