MCPcopy Index your code
hub / github.com/cloudflare/odoh-client-rs

github.com/cloudflare/odoh-client-rs @v0.1.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.9 ↗ · + Follow
15 symbols 22 edges 4 files 8 documented · 53%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

odoh-client-rs

Latest Version

odoh-client-rs is a CLI Rust client that can be used to access resolvers running the Oblivious DNS over HTTPS (ODoH) protocol draft-06. It is built using the odoh-rs library. It is mainly intended for testing as it can only send one request at a time.

Example usage

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, and a well known endpoint to retrieve the configs via GET requests.

$ cargo run -- example.com AAAA

Core symbols most depended-on inside this repo

create_request
called by 1
src/main.rs
send_request
called by 1
src/main.rs
parse_response
called by 1
src/main.rs
parse_unknown_qtype
called by 1
src/dns_utils.rs
create_dns_query
called by 1
src/dns_utils.rs
parse_dns_answer
called by 1
src/dns_utils.rs
get_qtype
called by 1
src/dns_utils.rs
from_path
called by 0
src/config.rs

Shape

Function 6
Method 6
Class 3

Languages

Rust100%

Modules by API surface

src/main.rs6 symbols
src/dns_utils.rs4 symbols
src/config.rs4 symbols
tests/integration_test.rs1 symbols

For agents

$ claude mcp add odoh-client-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page