You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's what I've discovered: If I only have DNS1 set in my values.conf, and not DNS2, then Google gets set automatically with 8.8.4.4. I can view the deployment and see this in the environment variable being set PIHOLE_DNS_. First I tried an empty DNS2, which didn't work, then I made up an invalid DNS2 and that worked.
In deployment.yaml it is checking if DNS2 exists, though, it always will because it is always set with a default value in values.yaml.
{{- if .Values.DNS1 }}
- name: 'PIHOLE_DNS_'
value: {{ if .Values.DNS2 }}{{ ( printf "%v;%v" .Values.DNS1 .Values.DNS2 ) | squote }}{{ else }}{{ .Values.DNS1 | squote }}{{ end }}
Currently, the README.md seems inaccurate, if someone uses podDnsConfig.enabled=false, and only specify a DNS1 they'll get the 8.8.4.4 DNS2 as a default. I'm not sure the best solution. Default DNS values of 8.8.8.8 and 8.8.4.4 are probably good, but it seems 8.8.4.4 should be removed as a default and perhaps added back in later if no DNS2 is specified and podDnsConfig.enabled=true. What do you think?
I have my own dns server and for pihole to work the Upstream DNS Servers all need to be unchecked.
I'm setting:
but after deploying pihole i still need to log in and uncheck the default upstream server
The text was updated successfully, but these errors were encountered: