Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

eduardostuart/google-dns-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-dns-rs

Crates.io MIT Rust


Documentation

Install

Add the following line to your Cargo.toml file:

google-dns-rs = "0.3.0"

Usage

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
}

License

MIT

About

Google public DNS lib for rust.

Topics

Resources

License

Stars

Watchers

Forks

Languages