DNS CLI Reference
Entry points
net-benchmark dns [OPTIONS] COMMAND [ARGS]...
dns-benchmark [OPTIONS] COMMAND [ARGS]... ← backward-compatible alias
Commands
Command |
Description |
|---|---|
|
Full benchmark suite with exports |
|
Rank resolvers by speed |
|
Side-by-side comparison |
|
Continuous monitoring with alerts |
|
Browse available built-in resolvers |
|
Browse available built-in domain lists |
|
Show defaults used by |
|
Show all resolver / domain categories |
|
Generate a YAML configuration for a category |
net-benchmark dns benchmark
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Use built-in resolvers and domains |
|
TEXT |
— |
Comma-sep IPs / names or JSON/YAML file path |
|
TEXT |
— |
Comma-sep domains or |
|
TEXT |
|
|
|
flag |
off |
Write structured JSON bundle |
|
PATH |
|
Output directory |
|
INT |
|
Number of benchmark passes |
|
flag |
off |
Full warmup (all resolvers × domains × record types) |
|
flag |
off |
Lightweight warmup (one probe per resolver) |
|
flag |
off |
Reuse DNS cache across iterations |
|
INT |
|
Max concurrent async queries |
|
FLOAT |
|
Per-query timeout in seconds |
|
INT |
|
Retry count on failure |
|
TEXT |
|
Record types: |
|
flag |
off |
Include per-domain stats |
|
flag |
off |
Include per-record-type stats |
|
flag |
off |
Include error type counts |
|
flag |
off |
Embed charts in PDF / Excel |
|
flag |
off |
Suppress progress bars |
|
flag |
off |
Use DNS-over-HTTPS |
|
flag |
off |
Use DNS-over-TLS |
|
TEXT |
— |
Custom DoH URLs (comma-sep, must match |
|
flag |
off |
Validate DNSSEC signatures |
net-benchmark dns top
Option |
Type |
Default |
Description |
|---|---|---|---|
|
INT |
|
Number of resolvers to display |
|
PATH |
built-in |
Domain file |
|
TEXT |
|
|
|
flag |
off |
Use DoH |
|
flag |
off |
Use DoT |
|
PATH |
— |
Write results to file |
net-benchmark dns compare
Argument / Option |
Description |
|---|---|
|
Two or more resolver names or IPs |
|
Domain file |
|
Record types |
|
Number of passes |
|
Print per-domain breakdown |
|
Use DoH |
|
Use DoT |
|
Write results to file |
net-benchmark dns monitoring
Option |
Type |
Default |
Description |
|---|---|---|---|
|
flag |
off |
Use built-in resolvers and domains |
|
TEXT |
— |
Resolvers |
|
TEXT |
— |
Domains |
|
INT |
|
Poll interval in seconds |
|
INT |
|
Total duration in seconds (0 = run forever) |
|
FLOAT |
— |
Alert if mean latency exceeds this (ms) |
|
FLOAT |
— |
Alert if failure rate exceeds this (%) |
|
PATH |
— |
Log file path |
|
flag |
off |
Use DoH |
|
flag |
off |
Use DoT |
Utility commands
net-benchmark dns list-defaults
net-benchmark dns list-resolvers
net-benchmark dns list-resolvers --details
net-benchmark dns list-resolvers --category security
net-benchmark dns list-resolvers --format csv
net-benchmark dns list-resolvers --format json
net-benchmark dns list-domains
net-benchmark dns list-domains --category tech
net-benchmark dns list-domains --count 10
net-benchmark dns list-domains --format csv
net-benchmark dns list-domains --format json
net-benchmark dns list-categories
net-benchmark dns generate-config --output sample_config.yaml
net-benchmark dns generate-config --category privacy --output privacy.yaml
net-benchmark dns generate-config --category security --output security.yaml
net-benchmark dns generate-config --category family --output family.yaml
net-benchmark dns generate-config --category performance --output performance.yaml