]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist docs: Fix formatting of response map example 10069/head
authorMatt Nordhoff <mnordhoff@mattnordhoff.com>
Sun, 7 Feb 2021 17:18:27 +0000 (17:18 +0000)
committerMatt Nordhoff <mnordhoff@mattnordhoff.com>
Sun, 7 Feb 2021 17:18:27 +0000 (17:18 +0000)
pdns/dnsdistdist/docs/guides/dns-over-https.rst

index ab0c23fdacd294f0c0c85f0b9dc95073d175bfdc..a5cbac186b848673183792e1ee5ab43ec7b6adbf 100644 (file)
@@ -29,7 +29,7 @@ A more complicated (and more realistic) example is when you want to indicate met
   addDOHLocal('2001:db8:1:f00::1', '/etc/ssl/certs/example.com.pem', '/etc/ssl/private/example.com.key', "/", {customResponseHeaders={["link"]="<https://example.com/policy.html> rel=\\"service-meta\\"; type=\\"text/html\\""}})
 
 It is also possible to set HTTP response rules to intercept HTTP queries early, before the DNS payload, if any, has been processed, to send custom responses including error pages, redirects or even serve static content. First a rule needs to be defined using :func:`newDOHResponseMapEntry`, then a set of rules can be applied to a DoH frontend via :meth:`DOHFrontend.setResponsesMap`.
-For example, to send an HTTP redirect to queries asking for ``/rfc``, the following configuration can be used:
+For example, to send an HTTP redirect to queries asking for ``/rfc``, the following configuration can be used::
 
   map = { newDOHResponseMapEntry("^/rfc$", 307, "https://www.rfc-editor.org/info/rfc8484") }
   dohFE = getDOHFrontend(0)