# smartdns を Homebrew, apt, Nix, pacman でインストール

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

## インストール

```sh
sudo av install brew:smartdns
```

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

### macOS

- Homebrew (100%):

```sh
brew install smartdns
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install smartdns
```

  証拠: Debian stable package indexes: smartdns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#smartdns
```

  証拠: nixpkgs package indexes: pkgs/by-name/sm/smartdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S smartdns
```

  証拠: Arch Linux sync databases: smartdns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:smartdns
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/smartdns>
- **バージョン:** 0.13.1
- **ソース概要:** Rule-based DNS server for fast IP resolution, DoT/DoQ/DoH/DoH3 supported
- **ホームページ:** <https://github.com/mokeyish/smartdns-rs>
- **リポジトリ:** <https://github.com/mokeyish/smartdns-rs>
- **ライセンス:** GPL-3.0-only
- **ソースアーカイブ:** <https://github.com/mokeyish/smartdns-rs/archive/refs/tags/v0.13.1.tar.gz>
- **最終更新:** 2026-06-27T19:43:42Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- サービス: declared
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.13.1
- マネージャ更新日: 2026-06-27
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/mokeyish/smartdns-rs
- 検出された最新: v0.13.1 (最新)
## プロジェクトの歴史と使われ方

SmartDNS-rs is a Rust implementation of the SmartDNS idea: a local DNS server that queries multiple upstream resolvers and returns the fastest result for the local network. In package-manager terms it sits in the same practical niche as dnsmasq-like local resolvers, but with modern encrypted DNS protocols and cross-platform packaging.

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

The upstream SmartDNS project documents the core design: accept local DNS queries, ask multiple upstream DNS servers, test or select the fastest reachable address, and return that result. SmartDNS-rs states that it was inspired by the C SmartDNS project and was written because the original was mainly Linux-oriented while the Rust version targets Windows, macOS, Linux, and Android Termux with compatible configuration.

### 採用の歴史

SmartDNS-rs gained package-manager visibility through Homebrew as `smartdns`, with the README documenting `brew install smartdns` and service startup through Homebrew services. The supplied package metadata also records packages in Debian, Ubuntu, Arch, and Nix, which places it beyond a single-platform GitHub binary.

### 使われ方

Typical use is as a local DNS daemon, often listening on port 53, configured with upstream DoH, DoT, DoQ, or DoH3 resolvers and domain-specific rules. The README shows running it with `smartdns run -c ./smartdns.conf -v`, installing it as a service, and using `dig` CHAOS TXT diagnostics for server/client information.

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

Package maintainers care because SmartDNS-rs combines DNS daemon behavior, privileged port binding, service integration, cross-platform binaries, and Rust dependency management in one formula. It is also a small example of a C networking utility being reworked for broader package-manager portability.

### タイムライン

- 2022: First GitHub release of smartdns-rs, 0.1.3, was published.
- 2020s: README documents Homebrew installation and cross-platform service management.
- 2020s: The Rust version documents compatibility with the original C SmartDNS configuration model.

### Related projects

- The README names the original C SmartDNS project as inspiration and Hickory DNS as a dependency or code source. It also positions the tool near dnsmasq-like local DNS servers.

### ソース

- GitHub releases API for mokeyish/smartdns-rs: first published release 0.1.3 on 2022-12-04.
- <https://github.com/mokeyish/smartdns-rs README: description, C SmartDNS inspiration, cross-platform rationale, install and usage examples.>
- <https://pymumu.github.io/smartdns/en/: original SmartDNS design, fastest-IP behavior, platform and protocol support.>
- input source_facts.package-manager: Homebrew, Debian, Ubuntu, Nix, and Arch package names.


## セキュリティノート

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: ./smartdns.conf, ./etc/smartdns/smartdns.conf
## ソースデータベース詳細

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

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

- Debian apt - smartdns - 46.1+dfsg-1.1~deb13u1: normalized package name match | Debian stable package indexes: smartdns from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | local DNS server to obtain the fastest IP for the best experience | https://github.com/pymumu/smartdns
- Nix - smartdns: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smartdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - smartdns - 45+dfsg-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: smartdns from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | local DNS server to obtain the fastest IP for the best experience | https://github.com/pymumu/smartdns
- pacman - smartdns - 48.3-1: normalized package name match | Arch Linux sync databases: smartdns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A local DNS server to obtain the fastest website IP for the best Internet experience | https://github.com/pymumu/smartdns


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [q](https://pkg.so/ja/brew/q/) - Shares pkgdb curated category or tags: cli, doh, doq, dot, networking.
- [sniffnet](https://pkg.so/ja/brew/sniffnet/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [bore-cli](https://pkg.so/ja/brew/bore-cli/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [miniserve](https://pkg.so/ja/brew/miniserve/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [gnirehtet](https://pkg.so/ja/brew/gnirehtet/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [nextdns](https://pkg.so/ja/brew/nextdns/) - Shares pkgdb curated category or tags: cli, doh, networking.
- [shadowsocks-rust](https://pkg.so/ja/brew/shadowsocks-rust/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [netscanner](https://pkg.so/ja/brew/netscanner/) - Shares pkgdb curated category or tags: cli, networking, rust.
- [hickory-dns](https://pkg.so/ja/brew/hickory-dns/) - Both packages touch the same language runtime or ecosystem. Shared terms: based, cli, dns, networking, rust.

## Combined YAML source

View the package source record on GitHub. [combined/smartdns.yml](https://github.com/mxcl/pkgdb/blob/main/combined/smartdns.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
