]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Documentation CNAME in redirect-type local-zone (#1409)
authorDaisuke HIGASHI <daisuke.higashi@gmail.com>
Fri, 27 Feb 2026 12:37:56 +0000 (21:37 +0900)
committerGitHub <noreply@github.com>
Fri, 27 Feb 2026 12:37:56 +0000 (13:37 +0100)
doc/unbound.conf.rst

index 817ebd317c763efd3f6d1fa5f9ee88de9e3e1532..eb79b47d2d2a66c469986b86eda9fc1be4180501 100644 (file)
@@ -2665,6 +2665,18 @@ These options are part of the ``server:`` section.
         redirected, so that users with web browsers cannot access sites with
         suffix example.com.
 
+        A ``CNAME`` record can also be provided via local-data:
+
+        .. code-block:: text
+
+            local-zone: "example.com." redirect
+            local-data: "example.com. CNAME www.example.org."
+
+        In that case, the ``CNAME`` is resolved and the answer
+        includes resolved target records as well.
+        ``CNAME`` resolution is supported only in type ``redirect``
+        local-zone.
+
     @@UAHL@unbound.conf.local-zone.type@inform@@
         The query is answered normally, same as
         :ref:`transparent<unbound.conf.local-zone.type.transparent>`.