feat: DNS client + DANE impl with Hickory

This commit is contained in:
DarkCat09 2024-08-14 17:30:31 +04:00
parent 2a097fb800
commit 5b43635b62
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
7 changed files with 734 additions and 9 deletions

10
examples/dane.rs Normal file
View file

@ -0,0 +1,10 @@
use tokio_gemini::dns::DnsClient;
#[tokio::main]
async fn main() {
let mut client = DnsClient::init(("1.1.1.1", 53)).await.unwrap();
println!(
"{:?}",
client.query_tlsa("torproject.org", 443).await.unwrap()
);
}