mos-doh-client

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 14 Imported by: 0

README

mos-doh-client

A very simple DoH client, using the Get method in RFC 8484 to query server.

一个十分简单的 DoH 客户端,使用RFC 8484Get方式请求。


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

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