http-doh #

Answers DNS-over-HTTPS (DoH) requests by forwarding them to a DNS server. Use it to give browsers or resolvers a DoH endpoint on your own nginx; upstream marks it experimental.

Source: upstream source

Directives

doh #

syntax: doh no args;  ·  context: location

Enables DNS-over-HTTPS handling for the current location using default upstream DNS server, port, and timeout.

doh_address #

syntax: doh_address 1 arg (string);  ·  context: location

Stores a single string value.

doh_port #

syntax: doh_port 1 arg (size (k/m/g));  ·  context: location

Size in bytes; accepts k / m / g suffixes.

doh_timeout #

syntax: doh_timeout 1 arg (duration in ms);  ·  context: location

Duration in milliseconds; accepts ms / s / m suffixes.

Example

location /dns-query { 
	doh;
	doh_address 127.0.2.1;
	doh_port 5353;
	doh_timeout 2;
}

↑ back to index