itsdns

CI crates.io docs.rs

It's always DNS.

A light weight (nostd and noalloc) lightweight DNS client that you can use with any UDP stack implemented by embedded-nal-async. It also implements the DNS traits from embedded-nal-async.

example

```rust

![feature(asyncfnin_trait)]

![allow(incomplete_features)]

use embeddednalasync::SocketAddr; use std::str::FromStr;

use itsdns::*;

[tokio::main]

async fn main() { let nameserver: SocketAddr = SocketAddr::fromstr("8.8.8.8:53").unwrap(); let stack = stdembeddednalasync::Stack::default(); let client = ItsDns::new(stack, nameserver);

let host = "example.com";
println!("Resolving {}...", host);
let ip = client
    .get_host_by_name(host, embedded_nal_async::AddrType::IPv4)
    .await
    .unwrap();

println!("Resolved {} to {}", host, ip);

} ```