Tuesday, June 21, 2016

macOS 10.12 Sierra - Flush DNS

On macOS 10.12 Sierra, flushing DNS uses the same commands as 10.11 and previous.


To flush your DNS on macOS 10.12 Sierra, issue this command in terminal:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed 
At the prompt, enter your password and hit the enter key. When it's done flushing your DNS, it will say so.  



8 comments:

  1. I have found this much more useful on 10.11 and 10.12

    sudo killall -9 mDNSResponder; sudo killall -9 dnsmasq

    ReplyDelete
  2. Ozgo, with your version I get "No matching processes were found"

    ReplyDelete
  3. Thanks worked like a champ, plus the SAY Flushed was fun.

    ReplyDelete
  4. I am trying this on OS Sierra 10.12.2 I am still seeing two three items in the DNS folder. Is this normal after flushing?

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. If you need to view the cache on Sierra, check out the instructions here: https://stackengineer.com/macos/dns-troubleshooting.html

    sudo killall -INFO mDNSResponder
    It will dump the DNS cache into into the Console.

    ReplyDelete
  7. There is a reason why I bought a Mac, it was not to be one of the cool kids that wanted the best of the best. No it was because of the music production I do on it. Hours and hours sitting in front of my Mac copying, pasting, moving, deleting, hour after hour just beating on my Mac in a endless assault to get my work done. That is the key part, my work. I work from home, it is great, but even if it is from home it is still work and it still needs to get done. So my Mac, I have it because it is fast, gets the job done and comes back for more.

    But what happens when it doesn't want to do those things anymore?

    I move around massive amounts of information and yes even on the almighty Mac this can cause a problem after a while. Things fragment, programs get corrupted issues come up. My light speed Mac slows down to a crawl and all of the sudden I simply can not get any work done. Because I work from home there is no IT guy to call and ask to come fix it. No instead I have to figure out what is wrong. I am lucky, I did, but not after trying everything under the sun first and wasting countless hours looking for one program that can do what I needed instead of ten programs. One program to lead them all….okay that was a lame Lord of the rings reference, but that program was/is Detox My Mac. A simple to use program that did not just fix my issues, it put my Mac on overdrive again. A few clicks and my Mac was clean and ready to rock and roll again.

    Read more here:- http://detox-my-mac.com?duhhf9265hskfhf98346

    ReplyDelete