A lightweight macOS menu bar app for managing DNS in one click — flush the DNS cache, switch to Cloudflare's resolver, or reset to automatic, without ever opening Terminal.
- 🔄 Flush DNS Cache — clears the system resolver cache instantly
- ☁️ Set DNS → Cloudflare — points Wi-Fi at
1.1.1.1/1.0.0.1 - ↩️ Reset DNS → Automatic — restores your router's default (DHCP)
- 📡 Live status line — shows your current DNS servers right in the menu
- ⌨️ Configurable shortcuts — rebind any action to your own key combo
- 🚀 Launch at Login — optional auto-start (toggle in the menu)
- 🪶 Menu bar only — no Dock icon, no window clutter
- Download
DNS Tool.dmgfrom the Releases page. - Open it and drag DNS Tool into Applications.
- Launch it — the network icon appears in your menu bar.
First launch: right-click the app → Open (the app is self-signed, so Gatekeeper asks once). After that it opens normally.
Click the menu bar icon:
| Item | Default shortcut | What it does |
|---|---|---|
| Flush DNS Cache | ⌘F | Clears the DNS cache |
| Set DNS → Cloudflare | ⌘C | Uses 1.1.1.1 / 1.0.0.1 |
| Reset DNS → Automatic | ⌘R | Back to DHCP / router DNS |
| Launch at Login | — | Toggle auto-start |
| Settings… | ⌘, | Rebind shortcuts |
Actions that change network settings prompt for your Mac password (required by macOS).
Requires the Xcode command-line tools.
swiftc -O src/main.swift -o "DNS Tool.app/Contents/MacOS/DNSTool"The repo includes:
src/main.swift— the appsrc/makeicon.swift— helper that crops/rounds the source artwork into a macOS icon set
- DNS changes apply to the Wi-Fi service.
- Tested on macOS 13+ (uses
SMAppServicefor the login item).
GPL v3.0.