When it comes to reset and flush DNS cache in macOS Sierra, many users turn cynical if they can do this process on their own. But once you go through the below mentioned steps, you will realize that it is pretty damn simple and easy for non-technical users. For technical users, they encounter this situation frequently in their career.
If you have been using Mac for a pretty long time, you must have seen that resetting and clearing DNS cache is different in every macOS version. So this process may not work if you are using Mac or macOS El Capitan.
Normally, technical experts perform this action when name server doesn’t resolve properly on Mac. Professionals also reset DNS cache when they want DNS change to get noticed by the system. The process can also be useful when make some changes in /etc/hosts file and when you wish edits to record without any need to reboot your system.
In any case, you can reset and clear DNS cache in macOS Sierra.
How to Reset and Flush DNS Cache in macOS Sierra
Step #1: Open terminal on your Mac and type “sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder”.
Step #2: Mac will ask you to type in a password; you need to type your Mac log in password and press Enter.
Hurray! You have done it successfully. Your DNS cache is reset and flushed on macOS Sierra. This procedure should fix the issue you have been facing with name servers. You can check whether or not the DNS issues are fixed by doing a ‘dig’ or ‘nslookup’ on a website.
How to Use Dig to See Query Times
Many users complain about jumbled DNS settings; or they experience that DNS is too slow. In this case, you may be baffled and wonder what to do next. At this, you can use ‘dig’ to confirm if DNS is working properly.
Step #1: Open terminal on your Mac and type a command: ‘dig indabaa.com’. You can type in any other website name.
Step #2: You will get some results on the screen; among those results, you need to check ‘Query time’. If that query time is too high for a website you have typed in, it is time to change DNS settings of macOS. You can use DNS Server like Google DNS.
After changing DNS server, run the ‘Dig’ command again to check the ‘Query time’ result again. If the problem persists, you need to think about the issue of ISP.
The steps given above can work on Mac OS X 10.10.4+, and on macOS Sierra. You can use the above method to reset and flush DNS cache in macOS Sierra, and if you face any trouble doing this, share your comments or feedback with us on Facebook, Twitter and Google Plus.