dscacheutil: Clearing DNS cache on OSX

This is something I ran into recently over the weekend. I made modifications to the DNS of a domain and I couldn’t get my mac to recognize the change.

The culprit was DNS caching, after flushing my DNS cache all was well.

# dscacheutil -flushcache

About Benjamin

Benjamin is a Infrastructure and Software Engineer. On this blog he writes about Linux, Docker, Programming as well as other Systems topics.

Learn more about Linux

If you liked this article, check out Benjamin's book: Red Hat Enterprise Linux Troubleshooting Guide. Where you can learn a lot more about troubleshooting Linux systems. This book is filled with tips and techniques he has learned over years of managing mission critical systems.

Related