ThomasBuchinger / prod-gitops

0 stars 0 forks source link

Pods do not resolve CNAMES correctly #3

Open ThomasBuchinger opened 1 year ago

ThomasBuchinger commented 1 year ago

For some reason Pods are unable to resolve CNAMEs, but they can resolve A records.

nslookup vault.buc.sh
# Works and returns the cname

nslookup evergreen.buc.sh
# Works and returns the IP address

getent hosts evergreen.buc.sh
# Works and returns the IP address

getent hosts vault.buc.sh
# Fails

curl https://vault.buc.sh
# Fails, unable to resolve hostname 
ThomasBuchinger commented 1 year ago

Worked around the problem by creating a A record for vault for now

ThomasBuchinger commented 1 year ago

This problem is caused by a PiHole specific configuration:

Solution: Set LOCAL_IPV4 environment variable, telling PiHole which IP address it should use as the Primary IPv4 Address

ThomasBuchinger commented 1 year ago

Keeping this issue open, because there is still an issue with the WiFi Router advertising itself as a DNS server via IPv6.

IPv6 devices (e.g. smartphones) prefer the WiFi Routers DNS server over PiHole