by Devin Yang
(This article was automatically translated.)

Published - 2 years ago ( Updated - 2 years ago )

Instructions on how to clear the DNS cache of various versions of MacOS

macOS 10.15 (Catalina) and later:

content_copysudo dscacheutil - flushcache; sudo killall -HUP mDNSResponder

macOS 10.12 (Sierra), 10.13 (High Sierra), and 10.14 (Mojave):

content_copysudo killall -HUP mDNSResponder

OS X 10.11 (El Capitan):

content_copysudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

OS X 10.10 (Yosemite):
For versions 10.10.4+, use:

content_copysudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

For versions 10.10.1, 10.10.2, and 10.10.3, use:

content_copysudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcache

OS X 10.9 (Mavericks):

content_copydscacheutil - flushcache; sudo killall -HUP mDNSResponder

Mac OS X 10.7 (Lion) and 10.8 (Mountain Lion):

content_copysudo killall -HUP mDNSResponder

Mac OS X 10.5 (Leopard) and 10.6 (Snow Leopard):

content_copysudo dscacheutil -flushcache

Mac OS X 10.4 (Tiger):

content_copylookupd -flushcache

Tags: dns

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments
In order to provide you with better services, this website uses cookies. By continuing to browse the web, you agree to our cookies policy. To understanding