# dscacheutil
dscacheutil
is a macOS specific command to gather information, statistics and initiate queries to the Directory Service cache, or, in simpler words, the command to interact with the DNS cache on macOS.
Flush DNS cache
From OS X 10.9 Mavericks to macOS 15 Sequoia, flush the DNS cache then restart DNS responder:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder