dohc

command module
v0.0.0-...-dbc5baa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 16 Imported by: 0

README

dohc

dohc is a DoH server scanner. With this tool you can check wich DoH servers are working on your network.

Build

Linux / macOS
CGO_ENABLED=0 go build -ldflags='-s -buildid=' .
Windows
$env:CGO_ENABLED=0
go build -ldflags='-s -buildid=' .
Makefile
make
Cross-Platform build
make cross-plat

Usage

To print a help message:

./dohc -help

To start testing:

./dohc -f doh_servers.txt

Source of DoH servers data

Scraping cURL DoH wiki

You can use scrape_doh_providers.py python3 script to scrape cURL DoH wiki to make a list of DoH resolvers. This method is recommended and most up-to-date.

python3 ./misc/scrape_doh_providers.py '"{}".format(o["url"])' > ./doh_servers.txt

I took the python script from HERE.

Using resolvers data

[!NOTE] This method also uses cURL DoH wiki but it may be outdated or old.

I took DoH resolvers data (This file) from encrypted-dns-resolvers repository. Then I extracted URIs with converter.sh shell script. The final file (doh_servers.txt) is a list of DoH resolvers each on a seperate line.

./misc/converter.sh ./misc/doh_resolvers_data_20240119.json ./doh_servers.txt

Contribution

If you can improve the source code or make this software better, feel free to send a PR :)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL