Codebase list dnss / ecb29d2
Update DoH references, point to RFC 8484 DoH is now a standard, published as RFC 8484. This patch updates the references to it accordingly. Alberto Bertogli 3 years ago
3 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
1212
1313 ## Features
1414
15 * Supports the JSON-based protocol as implemented by
15 * Supports the
16 [DNS Queries over HTTPS (DoH)](https://en.wikipedia.org/wiki/DNS_over_HTTPS)
17 standard ([RFC 8484](https://tools.ietf.org/html/rfc8484).
18 * Supports the older JSON-based protocol as implemented by
1619 [dns.google](https://dns.google)
1720 ([reference](https://developers.google.com/speed/public-dns/docs/dns-over-https)).
18 * Supports the [DNS Queries over HTTPS
19 (DoH)](https://tools.ietf.org/html/draft-ietf-doh-dns-over-https) proposed
20 standard (and implemented by [Cloudflare's 1.1.1.1](https://1.1.1.1/)).
2121 * Local cache (optional).
2222 * HTTP(s) proxy support, autodetected from the environment.
2323 * Monitoring HTTP server, with exported variables and tracing to help
2424 // server via DNS over HTTPS.
2525 //
2626 // It supports two modes: JSON (like https://dns.google) and DoH
27 // (https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-12).
27 // (https://en.wikipedia.org/wiki/DNS_over_HTTPS, RFC 8484).
2828 type httpsResolver struct {
2929 Upstream *url.URL
3030 CAFile string
55 // https://developers.google.com/speed/public-dns/docs/dns-over-https#api_specification.
66 // This is also implemented by Cloudflare's 1.1.1.1, as documented in:
77 // https://developers.cloudflare.com/1.1.1.1/dns-over-https/json-format/.
8 // - DNS Queries over HTTPS (DoH), as specified in:
9 // https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-12.
8 // - DNS Queries over HTTPS (DoH), as specified in RFC 8484:
9 // https://tools.ietf.org/html/rfc8484.
1010 package httpserver
1111
1212 import (
324324 return false, errInvalidCD
325325 }
326326
327 // Resolve DNS over HTTPS requests, as specified in
328 // https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-12.
327 // Resolve DNS over HTTPS requests, as specified in RFC 8484.
329328 func (s *Server) resolveDoH(tr trace.Trace, w http.ResponseWriter, dnsQuery []byte) {
330329 r := &dns.Msg{}
331330 err := r.Unpack(dnsQuery)