Skip to content

Commit 5ab3d9c

Browse files
committed
changed customDnsEntries to multi keyword list that writes adress entries like dnsmasq wants them
1 parent 54e80ea commit 5ab3d9c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

charts/pihole/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ home: https://github.com/MoJo2600/pihole-kubernetes/tree/main/charts/pihole
44
name: pihole
55
appVersion: "2024.06.0"
66
# Do not touch will be updated during release
7-
version: 2.24.0
7+
version: 2.24.1
88
sources:
99
- https://github.com/MoJo2600/pihole-kubernetes/tree/main/charts/pihole
1010
- https://pi-hole.net/
1111
- https://github.com/pi-hole
1212
- https://github.com/pi-hole/docker-pi-hole
1313
icon: https://i2.wp.com/pi-hole.net/wp-content/uploads/2016/12/Vortex-R.png
1414
maintainers:
15-
- name: MoJo2600
16-
15+
- name: lachnerd
16+
email: todo

charts/pihole/templates/configmap.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ data:
1313
{{- range .Values.dnsmasq.upstreamServers }}
1414
{{ . }}
1515
{{- end }}
16-
{{- range .Values.dnsmasq.customDnsEntries }}
17-
{{ . }}
16+
{{- range $index, $entry := .Values.dnsmasq.customDnsEntries }}
17+
adress=/{{ $entry.host }}/{{ $entry.ip }}
1818
{{- end }}
1919
{{- if .Values.serviceDns.loadBalancerIP }}
2020
dhcp-option=6,{{ .Values.serviceDns.loadBalancerIP }}

charts/pihole/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ dnsmasq:
339339
# - server=/bar.foo/192.168.178.11
340340

341341
# -- Add custom dns entries to override the dns resolution. All lines will be added to the pihole dnsmasq configuration.
342-
customDnsEntries: []
343-
# - address=/foo.bar/192.168.178.10
344-
# - address=/bar.foo/192.168.178.11
342+
customDnsEntries:
343+
- host: foo.bar
344+
ip: 192.168.178.1
345345

346346
# -- Dnsmasq reads the /etc/hosts file to resolve ips. You can add additional entries if you like
347347
additionalHostsEntries: []

0 commit comments

Comments
 (0)