16 lines
339 B
Rust
16 lines
339 B
Rust
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()
|
|
.next()
|
|
.unwrap()
|
|
.hex()
|
|
);
|
|
}
|