#2469·dex

Distroless container images unable to resolve `*.local` names

Author: ankeeslerCreated Apr 11, 2022Updated Aug 9, 2026
Labelsgood first issue

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

2.31.0

Storage Type

Kubernetes

Installation Type

Official container image

Expected Behavior

I want to use a distroless-based Dex build with an upstream LDAP IDP with address ending in .local.

More specifically, I want to run Dex and OpenLDAP on a single Kubernetes cluster for testing purposes, and I want to use a .svc.cluster.local address for OpenLDAP.

Actual Behavior

When I try to login to Dex, I see an error: LDAP Result Code 200 "Network Error": dial tcp: lookup ldap.openldap.svc.cluster.local: device or resource busy

image

Steps To Reproduce

  1. Get a Kubernetes cluster
  2. Build a distroless Dex container image (e.g., docker build --build-arg BASEIMAGE=gcr.io/distroless/static:latest -t dex .)
  3. Deploy OpenLDAP to Kubernetes
  4. Deploy distroless Dex to Kubernetes (ensuring to use .local LDAP host)
  5. Login to Dex
  6. See error above

Additional Information

Configuration

No response

Logs

No response