https-dns

Crates.iohttps-dns
lib.rshttps-dns
version0.2.0
sourcesrc
created_at2022-04-01 04:37:51.126757
updated_at2022-05-27 22:29:16.394556
descriptionMinimal and efficient DNS-over-HTTPS (DoH) client
homepagehttps://github.com/xiaoyang-sde/https-dns
repositoryhttps://github.com/xiaoyang-sde/https-dns
max_upload_size
id560113
size75,887
Xiaoyang Liu (xiaoyangl-stripe)

documentation

https://docs.rs/https-dns

README

https-dns

https-dns is a minimal and efficient DNS-over-HTTPS (DoH) client. DNS-over-HTTPS (RFC 8484) is a protocol for performing DNS resolution through the HTTPS protocol that prevents manipulation of DNS response. https-dns forwards DNS queries from the client to upstream DoH servers, caches the response, and sends the response back to the client.

Crates.io Crates.io GitHub Actions

Installation

cargo install https-dns

Usage

# udp://localhost:53 -> https://1.1.1.1 (default)
sudo https-dns

# udp://localhost:53 -> https://cloudflare-dns.com
sudo https-dns --upstream-address cloudflare-dns.com

# udp://localhost:10053 -> https://dns.google
sudo https-dns --local-port 10053 --upstream-address dns.google

CLI Reference

$ https-dns --help

https-dns 0.2.0
Minimal and efficient DNS-over-HTTPS (DoH) client

USAGE:
    https-dns [OPTIONS]

OPTIONS:
    -h, --help                                   Print help information
        --local-address <LOCAL_ADDRESS>          [default: 127.0.0.1]
        --local-port <LOCAL_PORT>                [default: 53]
        --upstream-address <UPSTREAM_ADDRESS>    [default: 1.1.1.1]
        --upstream-port <UPSTREAM_PORT>          [default: 443]
    -V, --version                                Print version information
Commit count: 0

cargo fmt