2024-08-14 16:30:31 +03:00
|
|
|
use tokio_gemini::dns::DnsClient;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() {
|
|
|
|
let mut client = DnsClient::init(("1.1.1.1", 53)).await.unwrap();
|
|
|
|
println!(
|
2024-08-15 16:54:24 +03:00
|
|
|
"{}",
|
|
|
|
client
|
|
|
|
.query_tlsa("torproject.org", 443)
|
|
|
|
.await
|
|
|
|
.unwrap()
|
|
|
|
.next()
|
|
|
|
.unwrap()
|
|
|
|
.hex()
|
2024-08-14 16:30:31 +03:00
|
|
|
);
|
|
|
|
}
|