
Flush DNS on macOS Sonoma (14): Exact Command (2026)
Flush DNS cache on macOS 14 Sonoma with sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder — verify resolution, clear browser DNS, fix stale hosts edits.
Direct answer: On macOS 14 Sonoma, flush DNS with:
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponderRun it after hosts edits, DNS server changes, or when a local domain still hits the old IP.
Also see Sequoia · Tahoe · hub Flush DNS on Mac.
How to flush DNS on macOS Sonoma
- Open Terminal.
- Paste
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder. - Authenticate with your admin password.
- Confirm with
dscacheutil -q host -a name app.test. - Hard-refresh or restart the browser.
When Sonoma users need this
/etc/hostsupdated but Safari/Chrome ignore it- Switching client environments on an older-but-supported Mac
- ISP DNS vs Cloudflare/Google resolver changes
- Staging IP tests before public DNS propagation
Still broken after flush? hosts not working after edit · check VPN/AdGuard/MagicDNS.
Verify and browser caches
dscacheutil -q host -a name app.test
ping -c 1 app.test| Browser | Clear host DNS |
|---|---|
| Chrome | chrome://net-internals/#dns |
| Firefox | about:networking#dns |
| Safari | Quit app after system flush |
Automate flush on Apply
If Sonoma hosts switches are frequent, use a GUI hosts manager that can flush after Apply — ToggleHosts ($4.99, one-time).
Related
Bottom line
Sonoma flush DNS uses the same modern command as Sequoia/Tahoe: sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder.
Frequently Asked Questions
Run sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder in Terminal.
No. Sonoma, Sequoia, and Tahoe use the same modern flush command. Use this page when you search for Sonoma-specific results.
macOS caches lookups. Without a flush, browsers can keep the previous IP even though /etc/hosts is updated.
Yes. Flushing clears cached lookups; the next request resolves fresh from hosts/DNS. It does not delete your hosts file.
Related Articles
macOS 26 Tahoe: Flush DNS Cache Command (2026)Flushing DNS & cache
macOS 26 Tahoe: Flush DNS Cache Command (2026)
6 min read
How to Flush DNS Cache on Windows, macOS & Linux (2026)Flushing DNS & cache
How to Flush DNS Cache on Windows, macOS & Linux (2026)
8 min read
Flush DNS on Windows 10 & 11: ipconfig /flushdns (2026)Flushing DNS & cache
Flush DNS on Windows 10 & 11: ipconfig /flushdns (2026)
3 min read