google-dns-rs
Install
Add the following line to your Cargo.toml file:
toml
google-dns-rs = "0.1.0"
Usage
```rust
use googlednsrs::api::{Dns, DoH, Result};
async fn githubdnsrecords() -> Result {
DoH::new("github.com".tostring())
// .settype(2) // NS record type
// .setcd(true) // disable or enable DNSSEC check
// .setct("application/x-javascript".tostring()) // content type
// .setdo(true) // include DNSSEC recods
.resolve()
.await
}
```
License
MIT