dnsclient

Crates.iodnsclient
lib.rsdnsclient
version0.1.19
sourcesrc
created_at2018-11-09 23:10:15.20216
updated_at2024-03-17 21:46:27.12856
descriptionA small, simple and secure DNS client library
homepagehttps://github.com/jedisct1/rust-dnsclient
repositoryhttps://github.com/jedisct1/rust-dnsclient
max_upload_size
id95725
size42,893
Frank Denis (jedisct1)

documentation

README

A simple and secure DNS client for Rust

API documentation

This is a DNS client crate. Some people may call that a stub resolver.

It can resolve IPv4 and IPv6 addresses. But unlike std::net::ToSocketAddrs, it directly contacts upstream servers, and doesn't depend on the system resolver. Which, in the worst case, could be systemd.

Instead, your application fully controls what upstream resolvers will be used.

It can also send raw queries, and return raw responses, retrying over multiple server candidates if necessary.

DNSClient carefully checks the consistency of every single packet it receives.

It will not let clients initiate zone transfers. It may prevent funky DNS implementations from crashing or being exploited when a malicious query or response is received.

It also transparently falls back to TCP when a truncated response is received.

Finally, its API couldn't be any simpler.

DNSClient comes with a synchronous interface (sync::*) as well as anasynchronous interface (async::*).

Cargo features:

  • async: use async-std as an async backend
  • async-tokio: use tokio as an async backend
Commit count: 57

cargo fmt