Skip to content

Commit

Permalink
Merge pull request #254 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…53-to-release-4.7

[release-4.7] Bug 1943826: Corefile: Use 30 second max TTL for caching of negative responses
  • Loading branch information
openshift-merge-robot committed Mar 31, 2021
2 parents 0eb71da + b8f9621 commit 542c391
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/operator/controller/controller_dns_configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ var corefileTemplate = template.Must(template.New("Corefile").Parse(`{{range .Se
forward . /etc/resolv.conf {
policy sequential
}
cache 900
cache 900 {
denial 9984 30
}
reload
}
`))
Expand Down
4 changes: 3 additions & 1 deletion pkg/operator/controller/controller_dns_configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ bar.com:5353 example.com:5353 {
forward . /etc/resolv.conf {
policy sequential
}
cache 900
cache 900 {
denial 9984 30
}
reload
}
`
Expand Down

0 comments on commit 542c391

Please sign in to comment.