Homarr OIDC login fails: pod DNS can not resolve auth.yukselcloud.com (EAI_AGAIN) #45
Labels
No labels
Monitoring
automation
bug
duplicate
feature
forgejo
help wanted
invalid
k3s
keycloak
ldap
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/homelab#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
OIDC login on
homarr.yukselcloud.comfails with EAI_AGAIN — the homarr pod cannot resolveauth.yukselcloud.com.Root cause
Node
/etc/resolv.confisnameserver 127.0.0.53+search lan(systemd-resolved). CoreDNS pods embed the node resolv.conf at creation. Pods query withsearch lanexpansion (ndots:5), e.g.auth.yukselcloud.com.lan.-> forwarded upstream -> 5-10s timeouts; upstream 1.1.1.1 is flaky (UDP i/o timeouts in old coredns logs).Evidence
getent hosts auth.yukselcloud.comfails every time (~10s timeout, both plain and trailing-dot forms).Prior attempt (reverted)
A
coredns-customConfigMap withlan.override(template NXDOMAIN) +upstream.override(forward . 8.8.8.8 192.168.0.1) broke cluster.local + external resolution (SERVFAIL). Removed -> cluster healthy. Do NOT add a secondforward .via override (Corefile import sits before the default forward).TODO / options
--resolv-confto a file with real upstream nameservers (e.g. 192.168.0.1) so fresh CoreDNS pods embed a working config.lanNXDOMAIN template (no forward override) + verify cluster.local unaffected.Related: #43 (same lan-expansion root cause behind authelia slowness).