3 unstable releases
Uses new Rust 2024
| 0.2.1 | Nov 28, 2025 |
|---|---|
| 0.2.0 | Nov 27, 2025 |
| 0.1.0 | Nov 27, 2025 |
#8 in #cd
17KB
220 lines
DoH Resolver
A simple Rust command-line DNS-over-HTTPS (DoH) client, similar to dig
Features
- Resolve DNS queries over HTTPS
- Supports custom DNS servers
- Allows querying different record types (A, AAAA, CNAME, etc.)
- Supports the
DO(DNSSEC OK) andCD(Checking Disabled) flags
Installation
From source
cargo install --path .
From crates.io
cargo install rdoh
Or run directly
cargo run -- example.com
Usage
Basic query
rdoh example.com
Specify a record type
rdoh example.com AAAA
Using a custom DoH server (default is cloudflare.com)
rdoh example.com AAAA https://dns.google/dns-query
Enable DO / CD flags
rdoh example.com A --do --cd
Dependencies
~7–21MB
~226K SLoC