Wednesday, June 10, 2015

OS X 10.11 El Capitan - Flush DNS

On OS X 10.11 El Capitan, flushing DNS uses the same commands as 10.9 and previous. If you've seen the news, the last 10.10.4 betas showed that Apple has removed discoveryd and discoveryutil.


To flush your DNS on OS X 10.11, issue this command in terminal:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed 


9 comments:

  1. Cool, thanks... just applied the command and hearing 'flushed' is good :) any more tricks?

    ReplyDelete
  2. It works. Thank you very much for this!

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. sudo dscacheutil -flushcache;

    ^ That's only for Snow Leopard, you can safely remove that part of the command.

    ReplyDelete
  5. I can't get it to work. On my vps I rebound the IP in dns and restarted the service. I went to my off-provider alternate vps, flushed its cache (windows server) and pinged the new domain - it has the new ip. On OSX, using this command, ping still resolves to the old IP.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Das Bet Bet - Online Casino | Sbobet
    Das Bet. This sports betting site is a top bookmaker 퍼스트카지노 offering a wide range of betting dafabet markets across a variety of sports and betting markets. matchpoint

    ReplyDelete