macOS
brew install qlocal Homebrew formula metadata
安装
brew install qlocal Homebrew formula metadata
nix profile install nixpkgs#qnixpkgs package indexes · pkgs/by-name/q/q/package.nix · 来源: api.github.com
scoop install main/qScoop official bucket manifest trees · bucket/q.json · 来源: api.github.com
winget install --id natesales.q -eWindows Package Manager source index · natesales.q · 来源: cdn.winget.microsoft.com
概览
Tiny command-line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH
历史
q is a compact Go command-line DNS client supporting conventional DNS and multiple encrypted DNS transports.
Nate Sales developed q as a small but feature-rich alternative to traditional DNS query clients. The program grew beyond UDP and TCP DNS to support DNS over TLS, HTTPS, QUIC, Oblivious HTTPS, and DNSCrypt.
The interface retains familiar DNS-client conventions, including `@server` selection and `+[no]flag` toggles, while adding JSON and YAML output, DNS Stamps, recursive AXFR, and IP registry enrichment.
q is distributed through Homebrew, MacPorts, Nix, Scoop, WinGet, the Arch User Repository, GitHub releases, Go installation, containers, and maintainer-operated apt/yum repositories. This gives the single-binary client unusually broad availability across desktop and Unix-like package ecosystems.
Users query default or explicit DNS record types, select a resolver with an `@server` argument, perform reverse lookups, request DNSSEC data, and choose pretty, raw, JSON, or YAML output.
q selects a server from an explicit argument, then `Q_DEFAULT_SERVER`, then `/etc/resolv.conf`. Its `+[no]flag` convention and raw output ease transitions from `dig`, while encrypted transports support modern resolver testing.
q belongs to a newer generation of DNS inspection tools that preserve familiar `dig`-style concepts while treating encrypted transports and machine-readable output as first-class features. Its compact Go distribution and wide package availability make it convenient for shell diagnostics and protocol testing.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/resolv.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
q | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/natesales/q
安装元数据
| 软件包键 | brew:q |
|---|---|
| 版本 | 0.19.12 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/q |
| 主页 | https://github.com/natesales/q |
| 仓库 | https://github.com/natesales/q |
| 许可证 | GPL-3.0-only |
| 源码归档 | https://github.com/natesales/q/archive/refs/tags/v0.19.12.tar.gz |
| 最后更新 | 2026-09-13T19:55:37Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | q |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
q
nix profile install nixpkgs#qq
sudo port install qmain/q
scoop install main/qnatesales.q
winget install --id natesales.q -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.