]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Add resolver.arpa and service.arpa to the default locally served
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Tue, 14 Jan 2025 16:18:32 +0000 (17:18 +0100)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Tue, 14 Jan 2025 16:18:32 +0000 (17:18 +0100)
  zones.

doc/Changelog
doc/example.conf.in
doc/unbound.conf.5.in
services/localzone.c

index f55fb05ed8e35762920655194e3d8a5e3aa9774b..7ffc59e0cc4cbe47e6cafd917a15eca08bcc51f2 100644 (file)
@@ -1,3 +1,7 @@
+14 January 2025: Yorgos
+       - Add resolver.arpa and service.arpa to the default locally served
+         zones.
+
 13 January 2025: Yorgos
        - Fix #1213: Misleading error message on default access control causing
          refuse.
index 33e12f1800c42b05302300a52fc481213deecf0f..de73d00441eb8a515b3f5b4d5174fe9ea02f5788 100644 (file)
@@ -811,6 +811,8 @@ server:
        # local-zone: "127.in-addr.arpa." nodefault
        # local-zone: "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." nodefault
        # local-zone: "home.arpa." nodefault
+       # local-zone: "resolver.arpa." nodefault
+       # local-zone: "service.arpa." nodefault
        # local-zone: "onion." nodefault
        # local-zone: "test." nodefault
        # local-zone: "invalid." nodefault
index 4d1fb13f8856e93479969d231da971e3ff3d829f..b6eb4493c4469414f9f8d57ceb78b9e42aa4d71e 100644 (file)
@@ -1638,6 +1638,7 @@ given zone.  Use \fInodefault\fR if you use exactly that zone, if you want to
 use a subzone, use \fItransparent\fR.
 .P
 The default zones are localhost, reverse 127.0.0.1 and ::1, the home.arpa,
+the resolver.arpa, the service.arpa,
 the onion, test, invalid and the AS112 zones. The AS112 zones are reverse
 DNS zones for private use and reserved IP addresses for which the servers
 on the internet cannot provide correct answers. They are configured by
@@ -1693,6 +1694,24 @@ local\-data: "home.arpa. 10800 IN
     SOA localhost. nobody.invalid. 1 3600 1200 604800 10800"
 .fi
 .TP 10
+\h'5'\fIresolver.arpa (RFC 8375)\fR
+Default content:
+.nf
+local\-zone: "resolver.arpa." static
+local\-data: "resolver.arpa. 10800 IN NS localhost."
+local\-data: "resolver.arpa. 10800 IN
+    SOA localhost. nobody.invalid. 1 3600 1200 604800 10800"
+.fi
+.TP 10
+\h'5'\fIservice.arpa (draft-ietf-dnssd-srp-25)\fR
+Default content:
+.nf
+local\-zone: "service.arpa." static
+local\-data: "service.arpa. 10800 IN NS localhost."
+local\-data: "service.arpa. 10800 IN
+    SOA localhost. nobody.invalid. 1 3600 1200 604800 10800"
+.fi
+.TP 10
 \h'5'\fIonion (RFC 7686)\fR
 Default content:
 .nf
index aa7138d6a147b1d87cf434f8e8ef5083dfbb7c44..4ff30fd266301e945a2c59e7471624c3977cf16c 100644 (file)
@@ -943,6 +943,16 @@ int local_zone_enter_defaults(struct local_zones* zones, struct config_file* cfg
                log_err("out of memory adding default zone");
                return 0;
        }
+       /* resolver.arpa. zone (RFC 9462) */
+       if(!add_empty_default(zones, cfg, "resolver.arpa.")) {
+               log_err("out of memory adding default zone");
+               return 0;
+       }
+       /* service.arpa. zone (draft-ietf-dnssd-srp-25) */
+       if(!add_empty_default(zones, cfg, "service.arpa.")) {
+               log_err("out of memory adding default zone");
+               return 0;
+       }
        /* onion. zone (RFC 7686) */
        if(!add_empty_default(zones, cfg, "onion.")) {
                log_err("out of memory adding default zone");