google-dns-rs 0.3.0

google-dns-rs is a third party Google DNS client for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # google-dns-rs
//! google-dns-rs is a third party Google DNS client for rust.
//!
//! ```no_run
//! use google_dns_rs::api::{Dns, DoH, Result};
//! async fn github_dns_records() -> Result<Dns> {
//!     DoH::new("github.com".to_string())
//!         // .set_type(2) // NS record type
//!         // .set_cd(true) // disable or enable DNSSEC check
//!         // .set_ct("application/x-javascript".to_string()) // content type
//!         // .set_do(true) // include DNSSEC recods
//!         .resolve()
//!         .await
//! }
//! ```

pub mod api;
pub mod error;