<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/01/2024 19:26, Peter Hessler via
Unbound-users wrote:<br>
</div>
<blockquote type="cite" cite="mid:ZaAy2HfiY0iP9du-@gir.theapt.org">
<pre class="moz-quote-pre" wrap="">
:I wonder if unbound is flexible enough to discern that a request is either
:DoH or DoT and then answer with the matching protocol ?
:
:Is that a silly idea ?
:
:
:Thank you.
:
That isn't possible. The clients would expect different behaviour than
what the server is providing.
</pre>
</blockquote>
<p><span style="white-space: pre-wrap">
</span></p>
<p><span style="white-space: pre-wrap">
</span></p>
<p>In theory it should be possible to run DoT and DoH on the same
port. The reason is that HTTP/2 requires an ALPN with the string
'h2'. The DoT RFC does not require a specific ALPN. But this
should be enough. If the ALPN is h2, the server uses HTTP/2, for
anything else, the server does DoT.</p>
<p><br>
</p>
<p>Note that at this time, unbound does not do this. However some
proxies may be able to split TLS traffic based on ALPN.<br>
</p>
</body>
</html>