dnsmasq
brew install dnsmasqLightweight 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.11 | 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 days | 18,707 |
|---|---|
| Downloads | 1,234,717 |
| Analytics install events (30 days) | 1,919 |
| Downloads / install events (30 days) | 9.8× |
Source: GitHub Packages, fetched 2026-11-23T01:04:55Z. Analytics dates: 2026-10-24 to 2026-11-23. 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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 1,919 | 4,959 | 29,203 |
Installs (--HEAD) | 0 | 6 | 42 |
| Installs on Request | 1,902 | 4,911 | 29,018 |
Installs on Request (--HEAD) | 0 | 6 | 42 |
| Build Errors | 0 |