dnsmasq

Install command:
brew install dnsmasq

Lightweight DNS forwarder and DHCP server

https://thekelleys.org.uk/dnsmasq/doc.html

License: GPL-2.0-only OR GPL-3.0-only

Development: Pull requests

Formula JSON API: /api/formula/dnsmasq.json

Formula code: dnsmasq.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.93

Depends on when building from source:

pkgconf 3.0.10 Package compiler and linker metadata toolkit

Binaries: dnsmasq

Service:

Start now and at startup: sudo brew services start dnsmasq
Run directly: $HOMEBREW_PREFIX/opt/dnsmasq/sbin/dnsmasq --keep-in-foreground -C $HOMEBREW_PREFIX/etc/dnsmasq.conf -7 $HOMEBREW_PREFIX/etc/dnsmasq.d,*.conf
On current macOS releases, `/etc/resolver/<domain>` resolver overrides do not work if the nameserver is `127.0.0.1` and dnsmasq is running on a non-53 port.
To use scoped resolver zones reliably, bind dnsmasq to a non-localhost IP (e.g., a loopback alias like 10.0.0.1) on port 53.

GitHub Packages downloads:

Last 30 days19,822
Downloads1,226,790
Analytics install events (30 days)2,033
Downloads / install events (30 days)9.8×

Source: GitHub Packages, fetched 2026-11-11T00:53:09Z. Analytics dates: 2026-10-12 to 2026-11-11. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,0335,06129,298
Installs (--HEAD)0744
Installs on Request2,0175,02429,121
Installs on Request (--HEAD)0744
Build Errors0