# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget 安装 nextdns

查看 nextdns 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:nextdns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nextdns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nextdns
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nextdns
```

  证据: nixpkgs package indexes: pkgs/by-name/ne/nextdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install nextdns
```

  证据: Chocolatey community package catalog: nextdns from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'

- Scoop (92%):

```sh
scoop install main/nextdns
```

  证据: Scoop official bucket manifest trees: bucket/nextdns.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id NextDNS.NextDNS -e
```

  证据: Windows Package Manager source index: NextDNS.NextDNS from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:nextdns
- **软件包管理器:** Homebrew
- **版本:** 1.47.3
- **来源摘要:** CLI for NextDNS's DNS-over-HTTPS (DoH)
- **主页:** <https://nextdns.io>
- **仓库:** <https://github.com/nextdns/nextdns>
- **最后更新:** 2026-07-26T19:43:15+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nextdns (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.47.3
## 项目历史与用法

NextDNS CLI is the open source DNS53-to-DNS-over-HTTPS proxy for the NextDNS service. It is aimed at routers and Unix-like systems, while also serving Windows and macOS users who prefer a CLI and an open source client over the GUI app.

### 项目历史

NextDNS was founded in May 2019 by Romain Cointepas and Olivier Poitrey, and the CLI followed the service's core idea: make encrypted, policy-aware DNS usable not only per browser or per app, but at the device or router boundary. The GitHub repository is written mostly in Go and packages the resolver/proxy, router integrations, install scripts, and platform glue.

### 采用历史

The CLI became a practical choice for people running NextDNS on OpenWrt, Ubiquiti/UniFi, Asuswrt-Merlin, Firewalla, Linux servers, macOS, and Windows. Its adoption is tied to home-network and small-network DNS filtering: users want DoH, local caching, split horizon/conditional forwarding, client identification in logs, and one setup that covers devices that cannot install an app.

The GitHub page showed about 4.1k stars, 242 forks, and 167 releases when researched on July 1, 2026. Homebrew analytics reported 185 installs in 30 days, 476 in 90 days, and 1,452 in 365 days for the formula when queried on the same date.

### 使用方式

Package nerds install NextDNS CLI when they want the router or host to listen on traditional DNS port 53 and forward queries through encrypted NextDNS endpoints. The installer/config flow asks for a NextDNS profile ID, can configure router mode, can report client information, and can enable local caching.

The interesting usage is not just 'run a DoH client'. NextDNS CLI can mix NextDNS with another DNS provider for split-horizon behavior, integrate with router environments, expose service control commands, and centralize DNS policy for machines that otherwise leak around browser-only DoH settings.

### 为什么软件包爱好者会关心

NextDNS CLI is a packaging bridge between privacy DNS SaaS and real network appliances. In av.db, the key enrichment point is that the executable is likely to manage local resolver/service state and profile identifiers in /etc/nextdns.conf rather than storing classic username/password credentials.

### 时间线

- 2019-05: NextDNS founded in Delaware by Romain Cointepas and Olivier Poitrey.
- 2019: The nextdns/nextdns tag series began with v1.0.0 in the public repository.
- 2026-02-22: GitHub wiki home page revision date observed for CLI documentation.
- 2026-06-03: GitHub page listed nextdns-v1.47.3 as the latest release.
- 2026-07-01: Homebrew formula version observed as 1.47.3, with 1,452 formula installs over the preceding 365-day analytics window.

### Related projects

- NextDNS service
- OpenWrt
- UniFi/UDM
- Asuswrt-Merlin
- Firewalla
- DNS-over-HTTPS

### 来源

- <https://formulae.brew.sh/api/formula/nextdns.json>
- <https://github.com/nextdns/nextdns>
- <https://github.com/nextdns/nextdns/wiki>
- <https://help.nextdns.io/t/y4hmv0n/who-is-behind-nextdns>
- <https://nextdns.io/>
- <https://nextdns.io/install>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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/nextdns.conf
## 其他软件包管理器记录

- Nix - nextdns: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/nextdns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - nextdns: normalized package name match | MacPorts ports tree: net/nextdns/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - nextdns: normalized package name match | Chocolatey community package catalog: nextdns from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'
- Scoop - main/nextdns: normalized package name match | Scoop official bucket manifest trees: bucket/nextdns.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - NextDNS.NextDNS: normalized package name match | Windows Package Manager source index: NextDNS.NextDNS from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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