You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/configuration.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1740,6 +1740,7 @@ Example config files: [well-known.toml](../cmd/routedns/example-config/well-know
1740
1740
1741
1741
DNS resolvers using the HTTPS protocol are configured with `protocol = "doh"`. By default, DoH uses TCP as transport, but it can also be run over QUIC (UDP) by providing the option `transport = "quic"`. DoH supports two HTTP methods, GET and POST. By default RouteDNS uses the POST method, but can be configured to use GET as well using the option `doh = { method = "GET" }`.
1742
1742
DoH with QUIC supports 0-RTT. The DoH resolver will try to use 0-RTT connection establishment if `transport = "quic"` and `enable-0rtt = true` are configured. When 0-RTT is enabled, the resolver will disregard the configured method and always use GET instead. This means the configured address nees to contain a URL template (with the `{?dns}` part).
1743
+
The idle connection timeout can be configured with `doh = { idle-timeout = 60 }` (in seconds). This controls how long idle HTTP connections are kept open before being closed. For TCP transport, the default is 30 seconds. For QUIC transport, the default is determined by the quic-go library. Note that for QUIC, the actual idle timeout is the minimum of the client and server values.
1743
1744
1744
1745
Examples:
1745
1746
@@ -1770,6 +1771,15 @@ transport = "quic"
1770
1771
enable-0rtt = true
1771
1772
```
1772
1773
1774
+
DoH resolver with extended idle timeout.
1775
+
1776
+
```toml
1777
+
[resolvers.cloudflare-doh-long-idle]
1778
+
address = "https://1.1.1.1/dns-query"
1779
+
protocol = "doh"
1780
+
doh = { idle-timeout = 60 }
1781
+
```
1782
+
1773
1783
Example config files: [well-known.toml](../cmd/routedns/example-config/well-known.toml), [simple-doh.toml](../cmd/routedns/example-config/simple-doh.toml), [mutual-tls-doh-client.toml](../cmd/routedns/example-config/mutual-tls-doh-client.toml)
0 commit comments