Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d8a4fc6

Browse files
authoredJun 26, 2024··
[stable/node-local-dns] add noIPv6Lookups config option (#587)
* add noIPv6Lookups config option * update indent
1 parent c827e43 commit d8a4fc6

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed
 

‎stable/node-local-dns/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: node-local-dns
3-
version: 2.0.12
3+
version: 2.0.13
44
appVersion: 1.23.1
55
maintainers:
66
- name: gabrieladt

‎stable/node-local-dns/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-local-dns
22

3-
![Version: 2.0.12](https://img.shields.io/badge/Version-2.0.12-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)
3+
![Version: 2.0.13](https://img.shields.io/badge/Version-2.0.13-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)
44

55
A chart to install node-local-dns.
66

@@ -57,6 +57,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
5757
| config.dnsServer | string | `"172.20.0.10"` | |
5858
| config.healthPort | int | `8080` | |
5959
| config.localDns | string | `"169.254.20.25"` | |
60+
| config.noIPv6Lookups | bool | `false` | |
6061
| config.prefetch.amount | int | `3` | |
6162
| config.prefetch.duration | string | `"30s"` | |
6263
| config.prefetch.enabled | bool | `false` | |

‎stable/node-local-dns/templates/configmap.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ data:
3030
forward . __PILLAR__CLUSTER__DNS__ {
3131
{{ .Values.config.commProtocol }}
3232
}
33+
{{- if .Values.config.noIPv6Lookups }}
34+
template IN AAAA {
35+
rcode NOERROR
36+
}
37+
{{- end }}
3338
prometheus :9253
3439
health :{{ .Values.config.healthPort }}
3540
}
@@ -52,6 +57,11 @@ data:
5257
forward . __PILLAR__CLUSTER__DNS__ {
5358
{{ .Values.config.commProtocol }}
5459
}
60+
{{- if .Values.config.noIPv6Lookups }}
61+
template IN AAAA {
62+
rcode NOERROR
63+
}
64+
{{- end }}
5565
prometheus :9253
5666
}
5767
ip6.arpa:53 {
@@ -73,6 +83,11 @@ data:
7383
forward . __PILLAR__CLUSTER__DNS__ {
7484
{{ .Values.config.commProtocol }}
7585
}
86+
{{- if .Values.config.noIPv6Lookups }}
87+
template IN AAAA {
88+
rcode NOERROR
89+
}
90+
{{- end }}
7691
prometheus :9253
7792
}
7893
.:53 {
@@ -93,5 +108,10 @@ data:
93108
{{- end }}
94109
forward . __PILLAR__UPSTREAM__SERVERS__
95110
prometheus :9253
111+
{{- if .Values.config.noIPv6Lookups }}
112+
template IN AAAA {
113+
rcode NOERROR
114+
}
115+
{{- end }}
96116
}
97117
{{ end }}

‎stable/node-local-dns/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ config:
2222
# Set communication protocol. Options are `prefer_udp` or `force_tcp`
2323
commProtocol: "force_tcp"
2424

25+
# If true, return NOERROR when attempting to resolve an IPv6 address
26+
noIPv6Lookups: false
27+
2528
# If enabled, coredns will prefetch popular items when they are about to be expunged from the cache. https://coredns.io/plugins/cache/
2629
prefetch:
2730
enabled: false

0 commit comments

Comments
 (0)
Please sign in to comment.