百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Q

q

> 开发工具
开源

一个小巧的命令行 DNS 客户端,支持 UDP、TCP、DoT、DoH、DoQ 和 ODoH。

2.5K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个小巧的命令行 DNS 客户端,支持 UDP、TCP、DoT、DoH、DoQ 和 ODoH。

Examples

q example.com                            Lookup default records for a domain
q example.com MX SOA                     ...or specify a list of types

q example.com MX @9.9.9.9                Query a specific server
q example.com MX @https://dns.quad9.net  ...over HTTPS (or TCP, TLS, QUIC, or ODoH)...
q @sdns://AgcAAAAAAAAAAAAHOS45LjkuOQA    ...or from a DNS Stamp

q example.com MX --format=raw            Output in raw (dig) format
q example.com MX --format=json           ...or as JSON (or YAML)

Usage

…

Demo

Protocol Support

  • UDP/TCP DNS (RFC 1034)
  • DNS over TLS (RFC 7858)
  • DNS over HTTPS (RFC 8484)
  • DNS over QUIC (RFC 9250)
  • Oblivious DNS over HTTPS (RFC 9230)
  • DNSCrypt v2 (draft-dennis-dprive-dnscrypt)

Installation

q is available from:

  • apt/yum/brew from my package repositories
  • Homebrew core repository
  • GitHub releases
  • q-dns-git in the AUR
  • go install github.com/natesales/q@latest
  • docker run --rm -it ghcr.io/natesales/q

To install q from source:

bash
git clone https://github.com/natesales/q && cd q
go install

# Without debug information
go install -ldflags="-s -w -X main.version=release"

Server Selection

q will use a server from the following sources, in order:

  1. @server argument (e.g. @9.9.9.9 or @https://dns.google/dns-query)
  2. Q_DEFAULT_SERVER environment variable
  3. /etc/resolv.conf

TLS Decryption

q supports TLS decryption through a key log file generated when the SSLKEYLOGFILE environment variable is set to a file path.

Feature Comparison

Protocol q doggo dog kdig dig drill
Transport Protocols
UDP/TCP ✅ ✅ ✅ ✅ ✅ ✅
DNS over TLS ✅ ✅ ✅ ✅ ✅ ❌
DNS over HTTPS ✅ ✅ ✅ ✅ ✅ ❌
DNS over QUIC ✅ ✅ ❌ ❌ ❌ ❌
Oblivious DNS over HTTPS ✅ ❌ ❌ ❌ ❌ ❌
DNSCrypt v2 ✅ ✅ ❌ ❌ ❌ ❌
Features
Recursive AXFR ✅ ❌ ❌ ❌ ❌ ❌
IP Whois ✅ ❌ ❌ ❌ ❌ ❌
Resolve PTRs from A/AAAAs ✅ ❌ ❌ ❌ ❌ ❌
Server from DNS Stamp ✅ ✅ ❌ ❌ ❌ ❌
Output Formats
Raw (dig-style) ✅ ❌ ✅ ✅ ✅ ✅
Pretty colors ✅ ✅ ✅ ❌ ❌ ❌
JSON ✅ ✅ ✅ ❌ ❌ ❌
YAML ✅ ❌ ❌ ❌ ✅ ❌
Output Control
Toggle question section ✅ ❌ ❌ ✅ ✅ ❌
Toggle answer section ✅ ❌ ❌ ✅ ✅ ❌
Toggle authority section ✅ ❌ ❌ ✅ ✅ ❌
Toggle additional section ✅ ❌ ❌ ✅ ✅ ❌
Show query time ✅ ✅ ❌ ✅ ✅ ❌
Query Flags
AA ✅ ✅ ✅ ✅ ✅ ✅
AD ✅ ✅ ✅ ✅ ✅ ✅
CD ✅ ✅ ✅ ✅ ✅ ✅
RD ✅ ✅ ❌ ✅ ✅ ✅
Z ✅ ✅ ❌ ✅ ✅ ❌
DO ✅ ✅ ✅ ✅ ✅ ✅
TC ✅ ❌ ❌ ✅ ✅ ✅
Protocol Tweaks
HTTP Method ✅ ❌ ❌ ❌ ❌ ❌
HTTP Headers ✅ ❌ ❌ ❌ ❌ ❌
QUIC ALPN Tokens ✅ ❌ ❌ ❌ ❌ ❌
QUIC toggle PMTU discovery ✅ ❌ ❌ ❌ ❌ ❌
QUIC timeouts (dial and idle) ✅ ❌ ❌ ❌ ❌ ❌
TLS handshake timeout ✅ ❌ ❌ ❌ ❌ ❌

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Godns-clientdns-over-httpsdns-over-quicdns-over-tls

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具