mos-doh-client
A very simple DoH client, using the Get
method in RFC 8484 to query server.
一个十分简单的 DoH 客户端,使用RFC 8484的Get
方式请求。
Usage/命令
-b string
[IP:Port] bind address (udp only)/ 监听地址 (仅udp)
-t duration
timeout (default 3s) / 请求超时时间 (默认 3s)
-url string
[URL] upstream server url / 上游服务器的 URL
-ip string
[ip addr] upstream server ip (optional) This can save one RTT since we don't have to resovle host ip
上游服务器IP地址 (可选) 此选项能节约一个RTT因为不需要去解析Host的IP
// DEBUG ONLY //
-sv
skip verification of the server's identity / 不验证服务器身份
Example/示例:
mos-doh-client -b 127.0.0.1:53 -t 3s -url https://dns.google/dns-query -ip 8.8.8.8
Common DoH server URL/常用DoH服务器的URL
Google: developers docs
https://dns.google/dns-query
...
Cloudflare: developers docs
https://1.1.1.1/dns-query
...
Open Source Components / Libraries