4092. [bug] 'in-view' didn't work for zones beneath a empty zone.
[RT #39173]
(cherry picked from commit febb020dce)
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
4092. [bug] 'in-view' didn't work for zones beneath a empty zone.
|
||||
[RT #39173]
|
||||
|
||||
4091. [cleanup] Some cleanups in isc mem code. [RT #38896]
|
||||
|
||||
4090. [bug] Fix a crash while parsing malformed CAA RRs in
|
||||
|
||||
+2
-2
@@ -2186,8 +2186,8 @@ create_empty_zone(dns_zone_t *zone, dns_name_t *name, dns_view_t *view,
|
||||
|
||||
obj = NULL;
|
||||
(void)cfg_map_get(zoptions, "type", &obj);
|
||||
INSIST(obj != NULL);
|
||||
if (strcasecmp(cfg_obj_asstring(obj), "forward") == 0) {
|
||||
if (obj != NULL &&
|
||||
strcasecmp(cfg_obj_asstring(obj), "forward") == 0) {
|
||||
obj = NULL;
|
||||
(void)cfg_map_get(zoptions, "forward", &obj);
|
||||
if (obj == NULL)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
@ IN SOA . . 0 0 0 0 0
|
||||
@ IN NS .
|
||||
@@ -54,6 +54,11 @@ view "internal" {
|
||||
allow-update { any; };
|
||||
};
|
||||
|
||||
zone "1.10.in-addr.arpa" {
|
||||
type master;
|
||||
file "1.10.in-addr.arpa.db";
|
||||
};
|
||||
|
||||
zone "inline" {
|
||||
type master;
|
||||
file "internal/inline.db";
|
||||
@@ -82,6 +87,10 @@ view "external" {
|
||||
forwarders { 10.53.0.5; };
|
||||
};
|
||||
|
||||
zone "1.10.in-addr.arpa" {
|
||||
in-view internal;
|
||||
};
|
||||
|
||||
zone "inline" {
|
||||
type master;
|
||||
file "external/inline.db";
|
||||
|
||||
@@ -12789,6 +12789,10 @@ view external {
|
||||
An <command>in-view</command> zone cannot be used as a
|
||||
response policy zone.
|
||||
</para>
|
||||
<para>
|
||||
An <command>in-view</command> zone is not intended to reference
|
||||
a <command>forward</command> zone.
|
||||
</para>
|
||||
</sect3>
|
||||
|
||||
</sect2>
|
||||
|
||||
Reference in New Issue
Block a user