# 使用 Homebrew, MacPorts 安装 zns

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

## 安装

```sh
sudo av install brew:zns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zns
```

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

## 软件包事实

- **软件包键:** brew:zns
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** CLI tool for querying DNS records with readable, colored output
- **主页:** <https://github.com/znscli/zns>
- **仓库:** <https://github.com/znscli/zns>
- **最后更新:** 2026-07-28T03:48:21Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zns (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

zns is a young Go DNS lookup CLI focused on making DNS records easier to scan than raw dig-style output. Its niche is not a new resolver protocol, but presentation: colored tabular output for humans plus JSON for scripts.

### 项目历史

The public project presents itself as a small command-line utility for querying DNS records and printing type, name, TTL, and value in a readable format. Its release history shows a compact early series of releases, with later changes mostly around packaging, dependency updates, and record sorting rather than a broad platform expansion.

### 采用历史

Public adoption evidence is modest. A Hacker News submission in 2025 drew light discussion from CLI users comparing it with other Go DNS tools, and the project added packaging instructions beyond Homebrew as it matured.

### 使用方式

zns is useful when checking how a domain is configured across common record types, especially when a person wants quick colored output at the terminal and a JSON form for follow-up automation. It can query a chosen DNS server, run concurrent lookups, and write results to a file.

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

For package nerds, zns is a good example of the modern small Go network utility: one binary, focused UX, JSON output, and overlap with older Unix staples rather than a replacement for DNS infrastructure itself.

### 时间线

- 2025: Public GitHub releases establish zns as a packaged DNS-record inspection CLI.
- 2025: Community discussion compares zns with doggo, q, and dug, placing it in the newer wave of friendlier DNS terminal tools.

### Related projects

- dig: the classic DNS query tool that zns tries to make friendlier for common record inspection.
- doggo, q, and dug: newer DNS CLIs with overlapping goals around readable output, JSON, and resolver testing.
- miekg/dns: the Go DNS library ecosystem that underpins many small DNS tools.

### 来源

- <https://github.com/znscli/zns>
- <https://github.com/znscli/zns/releases>
- <https://news.ycombinator.com/item?id=43140173>


## 安全说明

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

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

## 其他软件包管理器记录

- MacPorts - zns: normalized package name match | MacPorts ports tree: net/zns/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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