[odoh-client-rs] is a CLI Rust client that can be used to access resolvers running the [Oblivious DNS over HTTPS (ODoH) protocol draft-04]. It is built using the [odoh-rs] library. It is mainly intended for testing as it can only send one request at a time.
The proxy and resolver are configured using the file specified by the -c
flag, e.g., -c config.toml
. The default configuration can be found at tests/config.toml
. It uses https://odoh.cloudflare-dns.com, i.e., 1.1.1.1, as the target resolver.
bash
$ cargo run -- example.com AAAA
Instead of using HTTPS
DNS records to retrieve configs, it can be configured to use a well known endpoint to retrieve the configs via GET
requests. This can be done by setting the -w
flag:
bash
$ cargo run -- example.com A -w