# dnsmasq を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

dnsmasq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install dnsmasq
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dnsmasq
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: Fedora Rawhide package metadata: dnsmasq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

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

  証拠: 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
```

  証拠: 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
```

  証拠: openSUSE Tumbleweed package metadata: dnsmasq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:dnsmasq
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/dnsmasq>
- **バージョン:** 2.93
- **ソース概要:** Lightweight DNS forwarder and DHCP server
- **ホームページ:** <https://thekelleys.org.uk/dnsmasq/doc.html>
- **上流ドキュメント:** <https://thekelleys.org.uk/dnsmasq/doc.html>
- **ライセンス:** GPL-2.0-only OR GPL-3.0-only
- **ソースアーカイブ:** <https://thekelleys.org.uk/dnsmasq/dnsmasq-2.93.tar.gz>
- **最終更新:** 2026-06-04T15:31:34Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- dnsmasq (cli)
- dnsmasq (エイリアス)

## ビルド依存関係

- pkgconf

## インストール挙動

- post-install フック: 未定義
- サービス: declared
- 注意点: 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: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.93
- マネージャ更新日: 2026-06-04
- ローカルデータ: OK
- 上流リポジトリ: https://thekelleys.org.uk/dnsmasq/doc.html
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

dnsmasq is a lightweight DNS forwarder, DHCP server, router-advertisement daemon, and network-boot helper for small networks. It is one of the classic Unix packages for making a laptop, router, lab VM, or embedded box hand out names and addresses.

### プロジェクトの歴史

Simon Kelley's dnsmasq project documents a deliberately small service for DNS, DHCP, TFTP, PXE, and related local-network functions. The official documentation emphasizes small-network infrastructure: local DNS caching and forwarding, DHCP leases, static host mappings, and boot services without deploying a full enterprise DNS/DHCP suite.

The public dnsmasq site keeps the manual, downloads, changelog, and gitweb repository together, reflecting its older upstream style: a compact C daemon, tarball releases, a traditional mailing-list-oriented maintenance model, and broad downstream packaging.

### 採用の歴史

dnsmasq became widely adopted because it solves the ordinary edge-network problem in one daemon. It is packaged by Homebrew, Debian and Ubuntu, Fedora/DNF, Alpine, Arch, MacPorts, Nix, and openSUSE-style distributions, and it appears in routers, virtualization setups, container labs, and developer machines.

Its adoption history is also tied to network appliances and local development tooling: dnsmasq can be the DNS cache on a router, the DHCP server on a test subnet, or the wildcard/local-domain resolver on a developer laptop.

### 使われ方

Administrators use dnsmasq to cache and forward DNS, serve DHCP leases, define local hostnames, provide TFTP/PXE boot support, and advertise IPv6 router information. It is commonly configured with a single dnsmasq.conf file plus optional hosts and lease files.

Package users care that dnsmasq is small enough to run on embedded systems but standard enough to be scripted and supervised like any other Unix daemon.

### パッケージ好きにとっての重要性

dnsmasq is package-nerd infrastructure canon: tiny, old, everywhere, and still the fastest route from blank machine to working local DNS and DHCP. It often appears as a transitive operational dependency behind friendlier tools.

Its significance is also historical. Before every platform had polished local-network UX, dnsmasq was the practical package that let developers and operators compose DNS, DHCP, TFTP, and lab-network behavior from one service.

### タイムライン

- 2004: The official changelog records dnsmasq 2.x-era releases.
- 2010s: dnsmasq becomes common in Linux distributions, routers, virtualization, and developer-network workflows.
- 2020s: The project continues from its official site with tarball releases, manual pages, and a public gitweb repository.

### Related projects

- Related projects include Unbound and BIND for heavier DNS service, ISC Kea for larger DHCP deployments, dnscrypt-proxy for encrypted upstream DNS forwarding, and dnsdist for load balancing and traffic control in larger DNS environments.

### ソース

- <https://thekelleys.org.uk/dnsmasq/doc.html>
- <https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html>
- <https://thekelleys.org.uk/dnsmasq/CHANGELOG>
- <https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=summary>
- <https://formulae.brew.sh/formula/dnsmasq>


## セキュリティノート

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

- **Geiger リスク:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/dnsmasq.conf, /usr/local/etc/dnsmasq.conf
## ソースデータベース詳細

- **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

## 他のパッケージマネージャ記録

- 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.93-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.93-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.93-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.93-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.93-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.93-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.93-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/


## 関連リンク

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

## Combined YAML source

View the package source record on GitHub. [combined/dnsmasq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dnsmasq.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
