How to update local dns cache on Mac
Today, I add one of my domains to Cloudflare, but after I added a new record, I can’t access the web on my Mac, when I try to ping the…
Today, I add one of my domains to Cloudflare, but after I added a new record, I can’t access the web on my Mac, when I try to ping the host, it reports Unknown host
, but on some servers, it can be accessed.
So I think it’s the problem of the local dns, and I find the solution from this article How to Flush your DNS Cache on Mac, the solution is run the following command on the Terminal.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder