# Install dnsmasq

Lightweight DNS forwarder and DHCP server. Version 2.93 via Homebrew; verified 2026-06-04.

## Install

```sh
sudo av install brew:dnsmasq
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dnsmasq
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dnsmasq
```

  Evidence: MacPorts ports tree: net/dnsmasq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dnsmasq
```

  Evidence: Alpine Linux edge package indexes: dnsmasq from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dnsmasq
```

  Evidence: Debian stable package indexes: dnsmasq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dnsmasq
```

  Evidence: Fedora Rawhide package metadata: dnsmasq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dnsmasq
```

  Evidence: nixpkgs package indexes: pkgs/by-name/dn/dnsmasq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dnsmasq
```

  Evidence: Arch Linux sync databases: dnsmasq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install dnsmasq
```

  Evidence: openSUSE Tumbleweed package metadata: dnsmasq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## Package Facts

- **Package key:** brew:dnsmasq
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/dnsmasq>
- **Version:** 2.93
- **Source summary:** Lightweight DNS forwarder and DHCP server
- **Homepage:** <https://thekelleys.org.uk/dnsmasq/doc.html>
- **Repository:** <http://thekelleys.org.uk/git/dnsmasq.git>
- **Upstream docs:** <https://thekelleys.org.uk/dnsmasq/doc.html>
- **License:** GPL-2.0-only OR GPL-3.0-only
- **Source archive:** <https://thekelleys.org.uk/dnsmasq/dnsmasq-2.93.tar.gz>
- **Last updated:** 2026-06-04T15:31:34Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- dnsmasq (cli)
- dnsmasq (alias)

## Build Dependencies

- pkgconf

## Install Behavior

- Post-install hook: not defined
- Service: declared
- Caveats: 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.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.93
- Package-manager updated: 2026-06-04
- Local data status: ok
- Upstream repository: https://thekelleys.org.uk/dnsmasq/doc.html
- info: Release/tag comparison is only available for GitHub repositories.

## Notes de sécurité

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dnsmasq
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - dnsmasq - 2.91-1+deb13u1: normalized package name match | Debian stable package indexes: dnsmasq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Small caching DNS proxy and DHCP/TFTP server - system daemon | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Debian apt - dnsmasq-base - 2.91-1+deb13u1: normalized package name match | Debian stable package indexes: dnsmasq-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Small caching DNS proxy and DHCP/TFTP server - executable | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Debian apt - dnsmasq-base-lua - 2.91-1+deb13u1: normalized package name match | Debian stable package indexes: dnsmasq-base-lua from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Small caching DNS proxy and DHCP/TFTP server - executable, Lua-enabled | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Debian apt - dnsmasq-utils - 2.91-1+deb13u1: normalized package name match | Debian stable package indexes: dnsmasq-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities for manipulating DHCP leases | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Nix - dnsmasq: normalized package name match | nixpkgs package indexes: pkgs/by-name/dn/dnsmasq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dnsmasq - 2.90-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dnsmasq from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Small caching DNS proxy and DHCP/TFTP server - system daemon | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Ubuntu apt - dnsmasq-base - 2.90-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dnsmasq-base from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Small caching DNS proxy and DHCP/TFTP server - executable | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Ubuntu apt - dnsmasq-base-lua - 2.90-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dnsmasq-base-lua from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Small caching DNS proxy and DHCP/TFTP server - executable, Lua-enabled | https://www.thekelleys.org.uk/dnsmasq/doc.html
- Ubuntu apt - dnsmasq-utils - 2.90-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dnsmasq-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Utilities for manipulating DHCP leases | https://www.thekelleys.org.uk/dnsmasq/doc.html
- apk - dnsmasq - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-common - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-common from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server (common files) | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-dnssec - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-dnssec from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server with DNSSEC support | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-dnssec-dbus - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-dnssec-dbus from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server with DNSSEC and D-Bus support | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-dnssec-nftset - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-dnssec-nftset from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server with DNSSEC and nftables set support | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-doc - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server (documentation) | https://www.thekelleys.org.uk/dnsmasq/
- apk - dnsmasq-openrc - 2.92_p2-r0: normalized package name match | Alpine Linux edge package indexes: dnsmasq-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A lightweight DNS, DHCP, RA, TFTP and PXE server (OpenRC init scripts) | https://www.thekelleys.org.uk/dnsmasq/


## Related Links

- [Secret-risk packages](https://www.automicvault.com/fr/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/fr/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/fr/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [pkgconf](https://www.automicvault.com/fr/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [easyengine](https://www.automicvault.com/fr/pkg/brew/easyengine/) - Popular package that depends on this formula.
- [hostdb](https://www.automicvault.com/fr/pkg/brew/hostdb/) - Shares av.db curated category or tags: cli, dhcp, dns, networking.
- [chinadns-c](https://www.automicvault.com/fr/pkg/brew/chinadns-c/) - Shares av.db curated category or tags: cli, dns, dns-forwarder, networking.
- [unbound](https://www.automicvault.com/fr/pkg/brew/unbound/) - Shares av.db curated category or tags: cli, dns, networking.
- [c-ares](https://www.automicvault.com/fr/pkg/brew/c-ares/) - Shares av.db curated category or tags: cli, dns, networking.
- [libidn2](https://www.automicvault.com/fr/pkg/brew/libidn2/) - Shares av.db curated category or tags: cli, dns, networking.
- [libidn](https://www.automicvault.com/fr/pkg/brew/libidn/) - Shares av.db curated category or tags: cli, dns, networking.
- [ldns](https://www.automicvault.com/fr/pkg/brew/ldns/) - Shares av.db curated category or tags: cli, dns, networking.
- [bind](https://www.automicvault.com/fr/pkg/brew/bind/) - Shares av.db curated category or tags: cli, dns, networking, server.
- [coredns](https://www.automicvault.com/fr/pkg/brew/coredns/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, dns, networking, server, service.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
