Commit 141aa462 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #53604 from cblecker/no-negcache

Automatic merge from submit-queue (batch tested with PRs 53604, 53751). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add no-negcache flag to kube-dns **What this PR does / why we need it**: Adds the [`--no-negcache`](https://linux.die.net/man/8/dnsmasq) flag to prevent dnsmasq from caching negative (NXDOMAIN) responses. More details on why this is desirable [here](https://github.com/kubernetes/dns/issues/121). **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes/dns#121 **Special notes for your reviewer**: Thanks to @rsmitty (https://rsmitty.github.io/KubeDNS-Tweaks/) and @coresolve (https://github.com/kubernetes/dns/issues/121#issuecomment-334045196) for pointing us in the right direction. **Release note**: ```release-note Add --no-negcache flag to kube-dns to prevent caching of NXDOMAIN responses. ```
parents 97e00235 a466778f
...@@ -163,6 +163,7 @@ spec: ...@@ -163,6 +163,7 @@ spec:
- -- - --
- -k - -k
- --cache-size=1000 - --cache-size=1000
- --no-negcache
- --log-facility=- - --log-facility=-
- --server=/__PILLAR__DNS__DOMAIN__/127.0.0.1#10053 - --server=/__PILLAR__DNS__DOMAIN__/127.0.0.1#10053
- --server=/in-addr.arpa/127.0.0.1#10053 - --server=/in-addr.arpa/127.0.0.1#10053
......
...@@ -163,6 +163,7 @@ spec: ...@@ -163,6 +163,7 @@ spec:
- -- - --
- -k - -k
- --cache-size=1000 - --cache-size=1000
- --no-negcache
- --log-facility=- - --log-facility=-
- --server=/{{ pillar['dns_domain'] }}/127.0.0.1#10053 - --server=/{{ pillar['dns_domain'] }}/127.0.0.1#10053
- --server=/in-addr.arpa/127.0.0.1#10053 - --server=/in-addr.arpa/127.0.0.1#10053
......
...@@ -163,6 +163,7 @@ spec: ...@@ -163,6 +163,7 @@ spec:
- -- - --
- -k - -k
- --cache-size=1000 - --cache-size=1000
- --no-negcache
- --log-facility=- - --log-facility=-
- --server=/$DNS_DOMAIN/127.0.0.1#10053 - --server=/$DNS_DOMAIN/127.0.0.1#10053
- --server=/in-addr.arpa/127.0.0.1#10053 - --server=/in-addr.arpa/127.0.0.1#10053
......
...@@ -121,6 +121,7 @@ spec: ...@@ -121,6 +121,7 @@ spec:
- -- - --
- -k - -k
- --cache-size=1000 - --cache-size=1000
- --no-negcache
- --log-facility=- - --log-facility=-
- --server=/{{ .DNSDomain }}/127.0.0.1#10053 - --server=/{{ .DNSDomain }}/127.0.0.1#10053
- --server=/in-addr.arpa/127.0.0.1#10053 - --server=/in-addr.arpa/127.0.0.1#10053
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment