Skip to main content

Why can Docker services fail DNS lookups after IP churn?

Senior Docker
Quick Answer Docker's overlay network uses VXLAN tunnels with a key-value store (e.g., etcd) tracking container IPs. After frequent container restarts (IP churn), stale VXLAN FDB entries can persist briefly. A new container gets an old IP, and DNS resolves to the old entry before propagation รขโ‚ฌโ€ causing brief DNS lookup failures.

Answer

Stale DNS caches break lookups; apps need low TTLs.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice