[{"data":1,"prerenderedAt":281},["ShallowReactive",2],{"blog-article-\u002Fblog\u002Fflush-dns-mac":3},{"id":4,"title":5,"author":6,"body":7,"category":261,"cover":262,"coverAlt":263,"description":264,"draft":265,"extension":266,"meta":267,"navigation":268,"path":269,"publishedAt":270,"seo":271,"stem":272,"tags":273,"topics":277,"translationKey":279,"updatedAt":270,"__hash__":280},"articles_en\u002Fblog\u002Fflush-dns-mac.md","How to Flush DNS Cache on Mac","Harry",{"type":8,"value":9,"toc":254},"minimark",[10,14,31,42,47,50,53,83,91,98,102,105,108,118,121,125,128,139,181,184,192,196,199,236,239,250],[11,12,13],"p",{},"Wi-Fi is connected and other websites work, but one site keeps saying it cannot find the server. Or a website has moved to a new server and still will not open on your Mac. In these situations, check whether a locally cached DNS answer could be involved.",[11,15,16,21,22,26,27,30],{},[17,18,20],"a",{"href":19},"\u002F","MangoDisk"," can ",[23,24,25],"strong",{},"refresh the DNS cache"," from ",[23,28,29],{},"System Maintenance",". Find the task, confirm it, and authorize it without looking up Terminal commands. It can help when your Mac has remembered an outdated address. Afterward, try the original website again to see whether access has returned.",[11,32,33],{},[34,35],"img",{"alt":36,"decoding":37,"height":38,"loading":39,"src":40,"width":41},"MangoDisk System Maintenance on macOS, with Refresh DNS cache and its Run button at the bottom","async",1590,"lazy","https:\u002F\u002Fassets.mangodisk.app\u002Fimages\u002Fscreenshots\u002Fen\u002Flight-08-system-maintenance.jpg",2372,[43,44,46],"h2",{"id":45},"flush-your-macs-dns-cache-with-mangodisk","Flush your Mac's DNS cache with MangoDisk",[11,48,49],{},"First, check that the web address is spelled correctly and open another familiar site to check your basic connection. If Wi-Fi is disconnected or no apps can get online, address the connection problem first.",[11,51,52],{},"Save anything you have not yet submitted in a web form, then follow these steps:",[54,55,56,63,74,77,80],"ol",{},[57,58,59,60,62],"li",{},"Open MangoDisk, select ",[23,61,29],{}," in the sidebar, and let the checks finish.",[57,64,65,66,69,70,73],{},"Find ",[23,67,68],{},"Refresh DNS cache"," and click ",[23,71,72],{},"Run",".",[57,75,76],{},"Read the confirmation message and confirm this task.",[57,78,79],{},"Approve the administrator request from macOS and wait for the task feedback.",[57,81,82],{},"Once it finishes, revisit the address that would not open and check the result.",[11,84,85,86,90],{},"The maintenance checks only read status. Refreshing the cache requires you to run the task separately; other tasks in the list do not run along with it. See the ",[17,87,89],{"href":88},"\u002Fdocs\u002Ffeatures\u002Fsystem-maintenance","MangoDisk System Maintenance guide"," for more about the interface.",[11,92,93,94,97],{},"If authorization is declined or the task returns an error, read the message first. ",[23,95,96],{},"A completed task does not guarantee that the website will open."," Test the same address again to check the outcome.",[43,99,101],{"id":100},"what-does-flushing-the-dns-cache-change","What does flushing the DNS cache change?",[11,103,104],{},"DNS helps your Mac find the network address for a website name. The system temporarily remembers answers to avoid repeating lookups, but an outdated answer can keep directing it to an old address.",[11,106,107],{},"Clearing the local DNS cache lets subsequent lookups obtain fresh answers. It does not switch your configured DNS servers or delete saved browser passwords, bookmarks, or login cookies.",[11,109,110,111,117],{},"Changing DNS servers is a separate action in network settings. See ",[17,112,116],{"href":113,"rel":114},"https:\u002F\u002Fsupport.apple.com\u002Fguide\u002Fmac-help\u002Fchange-dns-settings-on-mac-mh14127\u002Fmac",[115],"nofollow","Apple's guide to DNS settings",". On a work or school network, follow the settings provided by your administrator.",[11,119,120],{},"Use this task to troubleshoot specific lookup problems. There is no need to run it daily when the network works normally. It will not increase your broadband plan's speed or repair a website's server.",[43,122,124],{"id":123},"clear-the-dns-cache-in-terminal","Clear the DNS cache in Terminal",[11,126,127],{},"If you prefer Terminal, you can also clear the cache manually on recent macOS versions, including Sequoia and Tahoe:",[54,129,130,136],{},[57,131,132,133,73],{},"Open ",[23,134,135],{},"Applications → Utilities → Terminal",[57,137,138],{},"Enter the following command and press Return. It refreshes local caches without changing your DNS server settings:",[140,141,146],"pre",{"className":142,"code":143,"language":144,"meta":145,"style":145},"language-sh shiki shiki-themes github-light github-dark","sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder\n","sh","",[147,148,149],"code",{"__ignoreMap":145},[150,151,154,158,162,166,170,172,175,178],"span",{"class":152,"line":153},"line",1,[150,155,157],{"class":156},"sScJk","sudo",[150,159,161],{"class":160},"sZZnC"," dscacheutil",[150,163,165],{"class":164},"sj4cs"," -flushcache",[150,167,169],{"class":168},"sVt8B","; ",[150,171,157],{"class":156},[150,173,174],{"class":160}," killall",[150,176,177],{"class":164}," -HUP",[150,179,180],{"class":160}," mDNSResponder\n",[11,182,183],{},"Enter your administrator password when prompted and press Return. Terminal shows no characters or asterisks while you type the password.",[11,185,186,187],{},"A successful run normally returns to the command prompt without a separate success message. If an error appears, read it before proceeding. The absence of a success message is not a reason to keep running the command. Try the original website again. ",[17,188,191],{"href":189,"rel":190},"https:\u002F\u002Fwww.namecheap.com\u002Fsupport\u002Fknowledgebase\u002Farticle.aspx\u002F397\u002F2194\u002Fhow-to-clear-local-dns-cache\u002F",[115],"Namecheap's macOS instructions",[43,193,195],{"id":194},"what-if-the-website-still-will-not-open","What if the website still will not open?",[11,197,198],{},"Keep testing the same address, then narrow down the problem:",[200,201,202,213,219,230],"ul",{},[57,203,204,207,208,212],{},[23,205,206],{},"Only one browser is affected:"," Try another browser or a private window. If the behavior differs, check that browser's extensions, site data, or cache. If app cache needs attention, see ",[17,209,211],{"href":210},"\u002Fblog\u002Fclear-cache-on-mac","how to clear cache on Mac"," and review the effects of each cleanup item.",[57,214,215,218],{},[23,216,217],{},"Other devices on the same network are affected too:"," Check the website's status, router, or internet provider. The symptom cannot be attributed solely to this Mac's local cache.",[57,220,221,224,225],{},[23,222,223],{},"The website's DNS records have just changed:"," DNS services outside your Mac may still hold old answers. Flushing the Mac does not clear those upstream caches, so changes may not appear immediately. ",[17,226,229],{"href":227,"rel":228},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fdns\u002Ftroubleshooting\u002Fdns-issues\u002F",[115],"Cloudflare's explanation of DNS caching and updates",[57,231,232,235],{},[23,233,234],{},"Only an internal work site or a particular VPN connection is affected:"," Record the address, connection state, and exact error for your network administrator rather than overwriting the organization's DNS settings.",[11,237,238],{},"If the problem continues, keep the browser's full error message and note which websites, browsers, devices, and networks are affected. Those details are more useful for further troubleshooting than repeatedly flushing the cache.",[11,240,241,242,245,246,73],{},"To refresh your Mac's DNS cache through a graphical interface, ",[17,243,244],{"href":19},"download MangoDisk"," and run the individual task in System Maintenance. It is free and open source, with no account required. Browse more ",[17,247,249],{"href":248},"\u002Fblog\u002Ftopics\u002Fmac-cleanup","Mac guides",[251,252,253],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":145,"searchDepth":255,"depth":255,"links":256},2,[257,258,259,260],{"id":45,"depth":255,"text":46},{"id":100,"depth":255,"text":101},{"id":123,"depth":255,"text":124},{"id":194,"depth":255,"text":195},"Mac system tools","\u002Fimages\u002Fblog\u002Fflush-dns-mac.webp","Orange refresh arrow around connected network nodes and a browser window on an ivory background","Flush the DNS cache on your Mac with MangoDisk or Terminal. Learn when refreshing helps and what to check if a website still will not open.",false,"md",{},true,"\u002Fblog\u002Fflush-dns-mac","2026-11-04T12:16:11+08:00",{"title":5,"description":264},"blog\u002Fflush-dns-mac",[274,275,276],"Flush DNS on Mac","DNS cache","System maintenance",[278],"mac-cleanup","article-flush-dns-mac","LIDJXSG8N1l4bgZPazXQj00gcLdamXdTc3NLqU-FD94",1794358864331]