Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DoH support GET/POST #62

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
12 changes: 11 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ It accepts a `opts` table argument. The following options are supported:

* `nameservers`

a list of nameservers to be used. Each nameserver entry can be either a single hostname string or a table holding both the hostname string and the port number. The nameserver is picked up by a simple round-robin algorithm for each `query` method call. This option is required.
a list of nameservers to be used. Each nameserver entry can be either a single hostname string, DoH url with optional port or a table holding both the hostname string and the port number. The nameserver is picked up by a simple round-robin algorithm for each `query` method call. This option is required.
* `retrans`

the total number of times of retransmitting the DNS request when receiving a DNS response times out according to the `timeout` setting. Defaults to `5` times. When trying to retransmit the query, the next nameserver according to the round-robin algorithm will be picked up.
Expand All @@ -138,7 +138,17 @@ It accepts a `opts` table argument. The following options are supported:
* `no_random`

a boolean flag controls whether to randomly pick the nameserver to query first, if `true` will always start with the first nameserver listed. Defaults to `false`.
* `doh`
pr4u4t marked this conversation as resolved.
Show resolved Hide resolved

a boolean flag controls whether to use DNS over Https (DoH)

* `doh_method`

type of DoH query possible values are `POST` or `GET` or boolean false, Defaults to nil.
* `doh_bootstrap`

list of nameservers used to perform initial query for IP address of DoH servers.

[Back to TOC](#table-of-contents)

query
Expand Down
Loading