disable caching for authoritative zone

Signed-off-by: Matt Riben <matt.riben@swirldslabs.com>
This commit is contained in:
Matt Riben 2024-10-26 20:18:27 -05:00
parent 3690cb7f9a
commit 30d9ed7203
No known key found for this signature in database
GPG Key ID: D209A25EAD656624
2 changed files with 17 additions and 3 deletions

View File

@ -184,7 +184,10 @@ func TestCreateCoreDNSAddon(t *testing.T) {
forward . /etc/resolv.conf { forward . /etc/resolv.conf {
max_concurrent 1000 max_concurrent 1000
} }
cache 30 cache 30 {
disable success cluster.local
disable denial cluster.local
}
loop loop
reload reload
loadbalance loadbalance
@ -228,7 +231,10 @@ func TestCreateCoreDNSAddon(t *testing.T) {
forward . /etc/resolv.conf { forward . /etc/resolv.conf {
max_concurrent 1000 max_concurrent 1000
} }
cache 30 cache 30 {
disable success cluster.local
disable denial cluster.local
}
loop loop
reload reload
loadbalance loadbalance
@ -314,7 +320,10 @@ func TestCreateCoreDNSAddon(t *testing.T) {
forward . /etc/resolv.conf { forward . /etc/resolv.conf {
max_concurrent 1000 max_concurrent 1000
} }
cache 30 cache 30 {
disable success cluster.local
disable denial cluster.local
}
loop loop
reload reload
loadbalance loadbalance

View File

@ -178,6 +178,11 @@ data:
max_concurrent 1000 max_concurrent 1000
} }
cache 30 cache 30
{{- if .DNSDomain }} {
disable success {{ .DNSDomain }}
disable denial {{ .DNSDomain }}
}
{{- end }}
loop loop
reload reload
loadbalance loadbalance