feat: DNS client + DANE impl with Hickory
This commit is contained in:
parent
2a097fb800
commit
5b43635b62
7 changed files with 734 additions and 9 deletions
10
examples/dane.rs
Normal file
10
examples/dane.rs
Normal 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()
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue