Sleezr
Buy Sleezr
DNSmacOS Sonomaflush DNShosts filelocal development

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.

S

Sleezr Team

Β·2 min read
Flush DNS on macOS Sonoma (14): Exact Command (2026)

Direct answer: On macOS 14 Sonoma, flush DNS with:

BASH
sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder

Run 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

1
Open Terminal.
2
Paste sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder.
3
Authenticate with your admin password.
4
Confirm with dscacheutil -q host -a name app.test.
5
Hard-refresh or restart the browser.

When Sonoma users need this

  • /etc/hosts updated 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

BASH
dscacheutil -q host -a name app.test
ping -c 1 app.test
BrowserClear host DNS
Chromechrome://net-internals/#dns
Firefoxabout:networking#dns
SafariQuit app after system flush

Automate flush on Apply

If Sonoma hosts switches are frequent, use a GUI hosts manager that can flush after Apply β€” Sleezr (4.99 € one-time after trial).

Bottom line

Sonoma flush DNS uses the same modern command as Sequoia/Tahoe: sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder.

Try Sleezr Β· All Mac versions

Share this article

Frequently Asked Questions

What is the flush DNS command on macOS Sonoma?

Run sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder in Terminal.

Does Sonoma need a different flush DNS command than Sequoia?

No. Sonoma, Sequoia, and Tahoe use the same modern flush command. Use this page when you search for Sonoma-specific results.

Why flush DNS after editing hosts on Sonoma?

macOS caches lookups. Without a flush, browsers can keep the previous IP even though /etc/hosts is updated.

Is it safe to flush DNS on Mac?

Yes. Flushing clears cached lookups; the next request resolves fresh from hosts/DNS. It does not delete your hosts file.

Related Articles

2 min read
DNSmacOS Sequoiaflush DNS

Flush DNS on macOS Sequoia (15): Exact Command (2026)

Flush DNS cache on macOS 15 Sequoia with sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder β€” verify with dscacheutil, clear browser cache, fix hosts edits.

S

Sleezr Team

Developer tools team

6 min read
DNSmacOS Tahoeflush DNS

macOS 26 Tahoe: Flush DNS Cache Command (2026)

Flush DNS cache on macOS 26 Tahoe with the exact Terminal command, verification steps, browser cache checks, and hosts file troubleshooting.

S

Sleezr Team

Developer tools team

2 min read
DNSLinuxflush DNS

Flush DNS on Linux: systemd-resolved & more (2026)

Flush the DNS cache on Linux with resolvectl flush-caches (systemd-resolved), plus nscd, dnsmasq and BIND. Commands by setup, with verification steps.

S

Sleezr Team

Developer tools team