Hi everyone! I've been building
dns-race
, a small open-source CLI tool written in Rust, and I'd love some feedback.
What it does
Ever wondered which DNS resolver is actually the fastest
for you
— 1.1.1.1, 8.8.8.8, 9.9.9.9, your ISP's, or a self-hosted one? dns-race fires concurrent DNS queries at multiple resolvers, measures the
latency of each response, picks the fastest one, and — the interesting part —
detects when resolvers disagree
on the answer.
Example output:
```text
Querying A records for github.com. from 3 resolver(s) (timeout 2000 ms)
✓ 1.1.1.1:53 12.14 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 2s)
✓ 8.8.8.8:53 144.34 ms ████████████████████ [4.228.31.150] (min TTL: 60s)
✓ 9.9.9.9:53 12.05 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 34s)
Fastest resolver: 9.9.9.9:53 (12.05 ms)
```
Features
•
Concurrent A/AAAA queries over UDP to any resolvers you want (
IP
or
IP:port
, IPv4 and IPv6)
•
Per-query latency measurement with configurable timeout
•
Multiple benchmark rounds (
--rounds
) with min/avg/max stats per resolver
•
Divergence detection: it normalizes the answer sets and flags resolvers that return different IPs (useful to spot CDN/load-balancing behavior — or something fishy)
•
Human-readable terminal output with latency bars and colors, plus a stable
--json
mode for scripts and CI/CD (with proper exit codes: 0 = ok, 3 = divergent answers, etc.)
•
Handles NXDOMAIN correctly as a valid negative response instead of an error
Tech stack:
Rust + Tokio (async), Clap, and Hickory Proto for DNS packet construction/parsing. MIT licensed.
Current status:
Phase 1 — developed and validated on Linux only. Windows and macOS support are planned as separate phases, and cross-platform distribution (CI/CD, releases) comes after that. There are no
pre-built binaries yet; you build from source with
cargo build --release
.
It's still in development, so feedback, bug reports, and contributions are very welcome!
Repo:
https://github.com/Caio13Vinni/dns-race
What do you think? Is there a feature you'd expect from a tool like this (DoH/DoT? latency percentiles?) that would make it more useful to you? Hi everyone! I've been building dns-race, a small open-source CLI tool written in Rust, and I'd love some feedback.
What it does
Ever wondered which DNS resolver is actually the fastest for you — 1.1.1.1, 8.8.8.8, 9.9.9.9, your ISP's, or a self-hosted one? dns-race fires concurrent DNS queries at multiple resolvers, measures the
latency of each response, picks the fastest one, and — the interesting part — detects when resolvers disagree on the answer.
Example output:
```text
Querying A records for github.com. from 3 resolver(s) (timeout 2000 ms)
✓ 1.1.1.1:53 12.14 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 2s)
✓ 8.8.8.8:53 144.34 ms ████████████████████ [4.228.31.150] (min TTL: 60s)
✓ 9.9.9.9:53 12.05 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 34s)
Fastest resolver: 9.9.9.9:53 (12.05 ms)
```
Features
• Concurrent A/AAAA queries over UDP to any resolvers you want (IP or IP:port, IPv4 and IPv6)
• Per-query latency measurement with configurable timeout
• Multiple benchmark rounds (--rounds) with min/avg/max stats per resolver
• Divergence detection: it normalizes the answer sets and flags resolvers that return different IPs (useful to spot CDN/load-balancing behavior — or something fishy)
• Human-readable terminal output with latency bars and colors, plus a stable --json mode for scripts and CI/CD (with proper exit codes: 0 = ok, 3 = divergent answers, etc.)
• Handles NXDOMAIN correctly as a valid negative response instead of an error
Tech stack: Rust + Tokio (async), Clap, and Hickory Proto for DNS packet construction/parsing. MIT licensed.
Current status: Phase 1 — developed and validated on Linux only. Windows and macOS support are planned as separate phases, and cross-platform distribution (CI/CD, releases) comes after that. There are no
pre-built binaries yet; you build from source with cargo build --release.
It's still in development, so feedback, bug reports, and contributions are very welcome!
Repo: https://github.com/Caio13Vinni/dns-race
What do you think? Is there a feature you'd expect from a tool like this (DoH/DoT? latency percentiles?) that would make it more useful to you? Hi everyone! I've been building
dns-race
, a small open-source CLI tool written in Rust, and I'd love some feedback.
What it does
Ever wondered which DNS resolver is actually the fastest
for you
— 1.1.1.1, 8.8.8.8, 9.9.9.9, your ISP's, or a self-hosted one? dns-race fires concurrent DNS queries at multiple resolvers, measures the
latency of each response, picks the fastest one, and — the interesting part —
detects when resolvers disagree
on the answer.
Example output:
```text
Querying A records for github.com. from 3 resolver(s) (timeout 2000 ms)
✓ 1.1.1.1:53 12.14 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 2s)
✓ 8.8.8.8:53 144.34 ms ████████████████████ [4.228.31.150] (min TTL: 60s)
✓ 9.9.9.9:53 12.05 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 34s)
Fastest resolver: 9.9.9.9:53 (12.05 ms)
```
Features
•
Concurrent A/AAAA queries over UDP to any resolvers you want (
IP
or
IP:port
, IPv4 and IPv6)
•
Per-query latency measurement with configurable timeout
•
Multiple benchmark rounds (
--rounds
) with min/avg/max stats per resolver
•
Divergence detection: it normalizes the answer sets and flags resolvers that return different IPs (useful to spot CDN/load-balancing behavior — or something fishy)
•
Human-readable terminal output with latency bars and colors, plus a stable
--json
mode for scripts and CI/CD (with proper exit codes: 0 = ok, 3 = divergent answers, etc.)
•
Handles NXDOMAIN correctly as a valid negative response instead of an error
Tech stack:
Rust + Tokio (async), Clap, and Hickory Proto for DNS packet construction/parsing. MIT licensed.
Current status:
Phase 1 — developed and validated on Linux only. Windows and macOS support are planned as separate phases, and cross-platform distribution (CI/CD, releases) comes after that. There are no
pre-built binaries yet; you build from source with
cargo build --release
.
It's still in development, so feedback, bug reports, and contributions are very welcome!
Repo:
https://github.com/Caio13Vinni/dns-race
What do you think? Is there a feature you'd expect from a tool like this (DoH/DoT? latency percentiles?) that would make it more useful to you? Hi everyone! I've been building dns-race, a small open-source CLI tool written in Rust, and I'd love some feedback.
What it does
Ever wondered which DNS resolver is actually the fastest for you — 1.1.1.1, 8.8.8.8, 9.9.9.9, your ISP's, or a self-hosted one? dns-race fires concurrent DNS queries at multiple resolvers, measures the
latency of each response, picks the fastest one, and — the interesting part — detects when resolvers disagree on the answer.
Example output:
```text
Querying A records for github.com. from 3 resolver(s) (timeout 2000 ms)
✓ 1.1.1.1:53 12.14 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 2s)
✓ 8.8.8.8:53 144.34 ms ████████████████████ [4.228.31.150] (min TTL: 60s)
✓ 9.9.9.9:53 12.05 ms ██░░░░░░░░░░░░░░░░░░ [4.228.31.150] (min TTL: 34s)
Fastest resolver: 9.9.9.9:53 (12.05 ms)
```
Features
• Concurrent A/AAAA queries over UDP to any resolvers you want (IP or IP:port, IPv4 and IPv6)
• Per-query latency measurement with configurable timeout
• Multiple benchmark rounds (--rounds) with min/avg/max stats per resolver
• Divergence detection: it normalizes the answer sets and flags resolvers that return different IPs (useful to spot CDN/load-balancing behavior — or something fishy)
• Human-readable terminal output with latency bars and colors, plus a stable --json mode for scripts and CI/CD (with proper exit codes: 0 = ok, 3 = divergent answers, etc.)
• Handles NXDOMAIN correctly as a valid negative response instead of an error
Tech stack: Rust + Tokio (async), Clap, and Hickory Proto for DNS packet construction/parsing. MIT licensed.
Current status: Phase 1 — developed and validated on Linux only. Windows and macOS support are planned as separate phases, and cross-platform distribution (CI/CD, releases) comes after that. There are no
pre-built binaries yet; you build from source with cargo build --release.
It's still in development, so feedback, bug reports, and contributions are very welcome!
Repo: https://github.com/Caio13Vinni/dns-race
What do you think? Is there a feature you'd expect from a tool like this (DoH/DoT? latency percentiles?) that would make it more useful to you?