• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

GeekwithEnvy

  • Home
  • News
  • How To / Guides
  • Featured Apps
  • Mac
  • PC

flush dns

Flush DNS Cache on Mac OS X

July 4, 2013 by Richard Vincenti Jr 5 Comments

When you enter a web address into your webrowser like “geekwithenvy.com”, the DNS (Domain Name System) changes that user-friendly name into an IP address that computers can more easily understand. Your computer doesn’t need to do this every single time you visit a website because it stores the IP addresses for many sites on your computer for a short period of time. This information is stored in what’s called the DNS cache.representations of servers to show Clear DNS Cache

Unfortunately, this stored information may become corrupt or just end up being incorrect due to changes that occur on the site’s server. If your DNS cache has incorrect IP information then you won’t be able to access the site your trying to get to because it’s looking for the website in the wrong place.

There is a quick solution to correcting your DNS cache issues and that is to force it to ask the DNS what the new IP information is. You can do this by clearing the DNS cache or “Flushing” your DNS cache.

Launch Terminal and enter the commands below to flush your DNS Cache:

Mac OS X Lion and Mountain Lion (10.7 /10.8)

  • sudo killall -HUP mDNSResponder

Mac OS X (10.5 and 10.6)

  • dscacheutil -flushcache

If you happen to be running OS X Mavericks (10.9) you will want to do this two step command:

  • dscacheutil -flushcache;sudo killall -HUP mDNSResponder

Mac OS X Yosemite (10.10) 

 (Please note: The the following command will clear your DNS Cache but there is no official confirmation from the terminal when entered.

  • sudo discoveryutil mdnsflushcache
  • sudo discoveryutil udnsflushcaches

Mac OS X Yosemite (10.10.4 and Up) use this instead:

  • dscacheutil -flushcache;sudo killall -HUP mDNSResponder

That should cover it for DNS cache issues. If you are still having problems you can always reboot your machine, this should resolve any DNS inaccuracies on your computer.

Filed Under: Apple, Computers, Guides, How To, Internet, Mac, OSX Tagged With: dns cache, flush dns, Guide, How To, internet, IP, lion, Mac, mac commands, Mountain Lion, OSX, terminal

Primary Sidebar

Looking for Something?

Please follow & like us :)

Facebook
Facebook
fb-share-icon
Twitter
Visit Us
Post on X
YouTube






Tags

Android App Apple Apps Blizzard blizzard entertainment Computers Electronics Featured App Film Games Gaming Guide Hardware How To internet iOS iPad iPhone Mac Microsoft Mobile NASA News Nintendo OSX PC Playstation 4 ps4 Science Software Sony Space Star Wars Technology trailer Updates video video games Web Windows windows 8 World Of Warcraft Xbox youtube

Footer

  • About Us
  • GWE Podcast
  • GWE Classic
  • Support

Pages

  • Blog
  • Privacy Policy
  • Terms Of Use
  • About Us
  • GWE Podcast
  • Support

Archives

Copyright © 2025 · eleven40 Pro on Genesis Framework · WordPress · Log in

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT