mxssl / doh

Simple DNS over HTTPS cli client for Cloudflare

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doh

Simple DNS over HTTPS cli client for cloudflare

Install

Linux

wget https://github.com/mxssl/doh/releases/download/v0.0.9/doh_linux_amd64.tar.gz
tar zvxf doh_linux_amd64.tar.gz
mv doh /usr/local/bin/doh
chmod +x /usr/local/bin/doh
rm doh_linux_amd64.tar.gz

MacOS amd64

wget https://github.com/mxssl/doh/releases/download/v0.0.9/doh_darwin_amd64.tar.gz
tar zvxf doh_darwin_amd64.tar.gz
mv doh /usr/local/bin/doh
chmod +x /usr/local/bin/doh
rm doh_darwin_amd64.tar.gz

MacOS arm64 (Apple Silicon)

wget https://github.com/mxssl/doh/releases/download/v0.0.9/doh_darwin_arm64.tar.gz
tar zvxf doh_darwin_arm64.tar.gz
mv doh /usr/local/bin/doh
chmod +x /usr/local/bin/doh
rm doh_darwin_arm64.tar.gz

Golang

go install github.com/mxssl/doh@latest

Docker

docker pull mxssl/doh:v0.0.9
docker container run --rm mxssl/doh:v0.0.9 doh a google.com

Usage

doh [query type] [domain name]

Example

$ doh a google.com
name: google.com
type: 1
ttl: 210
data: 142.250.201.206
whois: Google LLC

About

Simple DNS over HTTPS cli client for Cloudflare

License:The Unlicense


Languages

Language:Go 95.3%Language:Dockerfile 4.7%