Jump to content

How to solve connection issues by clearing OS X DNS cache


Recommended Posts

http://cdn.mos.techradar.com/art/laptops/Apple/New%20MacBook%20%282015%29/review/macbook-stool-470-75.JPG

You may occasionally get into a situation where the DNS on your Mac needs to be flushed from the system in order for a new server or some other DNS address change to be recognized by your computer.

Usually you don't need to worry about this unless you're a systems/network administrator or if you're a web developer, but there may be other network issues that can be solved with a simple DNS cache flush. In those situations, you can use the command in this how-to without even having to restart your Mac.

With almost every iteration of OS X, the command has changed to flush the DNS cache. In this article, we'll show you how to clear the DNS cache in OS X Yosemite (10.10). The old "mDNSResponder" command no longer works since Yosemite has a new system that manages the DNS cache.

Reset MDNS Cache (Multicast DNS)

OS X utilizes two DNS cache systems; the first is a MDNS Cache (or Multicast DNS) that handles the zero configuration services on your local network. To reset the MDNS cache, open the Terminal (located in Aplications/Utilities) and type the following command, followed by the return key:

sudo discoveryutil mdnsflushcache

If you are prompted for a password, simply enter it, then press return again.

Reset UDNS Cache (Unicast DNS)

The second DNS cache is called UDNS (or Unicast DNS), which handles associations between the network addresses and the network endpoints. To reset this cache, open the Terminal, then enter the following command:

sudo discoveryutil udnsflushcaches

Again, you may be prompted for a password. If so, enter it, then press return.

Reset Both Caches at Once

http://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/solve%20connection%20issues%20by%20clearing%20the%20os%20x%20dns%20cache/cory-bash-420-90.JPG

If you wish to reset all DNS caches in OS X Yosemite at once, then simply join the commands together with a semicolon, then paste them into Terminal like this:

sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches

After you've typed the command on a single line, all you have to do is press enter to flush both cache systems in OS X.




http://rc.feedsportal.com/r/233194748020/u/49/f/415085/c/669/s/481ad286/sc/28/rc/1/rc.img

http://rc.feedsportal.com/r/233194748020/u/49/f/415085/c/669/s/481ad286/sc/28/rc/2/rc.img

http://rc.feedsportal.com/r/233194748020/u/49/f/415085/c/669/s/481ad286/sc/28/rc/3/rc.img

http://da.feedsportal.com/r/233194748020/u/49/f/415085/c/669/s/481ad286/sc/28/a2.imghttp://pi.feedsportal.com/r/233194748020/u/49/f/415085/c/669/s/481ad286/sc/28/a2t.imghttp://rss.feedsportal.com/c/669/f/415085/s/481ad286/sc/28/mf.gifhttp://feeds.feedburner.com/~r/techradar/software-news/~4/PI-__gc7GCM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...