DoH support to be configured with the 'alpn' parameters for the upstreams. Here is some example config for the cloudflare, google and quad9 DoH resolvers:
Note that dns-query is the default value of the doh_path parameter and does not need to be specified.
If h2 is the value for the alpn parameter, the default for the tls_port parameter is 443. If alpn has value dot (the default), the default tls_port is 853
Addresses in string format such as usable after the @ with getdns_query use underscore (_) to specify alpn and slash (/) to specify the doh_path parameter:
upstreams: @<ip>[%<scope_id>][@<port>][^<tsig spec>]
[#<tls port>][~<tls name>][_<alpn>][/<doh path>]
<ip>@<port> may be given as <IPv4>:<port>
or '['<IPv6>[%<scope_id>]']':<port> too
DoH support to be configured with the 'alpn' parameters for the upstreams. Here is some example config for the cloudflare, google and quad9 DoH resolvers:
Note that
dns-query
is the default value of thedoh_path
parameter and does not need to be specified. Ifh2
is the value for thealpn
parameter, the default for thetls_port
parameter is443
. Ifalpn
has valuedot
(the default), the defaulttls_port
is853
Addresses in string format such as usable after the
@
withgetdns_query
use underscore (_
) to specifyalpn
and slash (/
) to specify thedoh_path
parameter:I.e.:
Or with leaving out default values: