Render empty forwarders for forward zones
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful

A forward zone with no forwarders now renders "forwarders { };", which
BIND accepts and treats as disabling forwarding for the zone.
This commit is contained in:
2026-10-16 23:32:09 +11:00
parent f149b79cce
commit 53cb7fa059
7 changed files with 51 additions and 10 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ type BindZoneSpec struct {
// +optional
DNSSECPolicyRef string `json:"dnssecPolicyRef,omitempty"`
// Forwarders lists upstreams for a forward-type zone.
// Forwarders lists upstreams for a forward-type zone; an empty list disables forwarding for the zone.
// +optional
Forwarders []string `json:"forwarders,omitempty"`