Embedded DNS, aliases and service diagnosis
On a custom Docker network, the embedded DNS resolver is available at 127.0.0.11. Names and aliases are network-scoped; use stable service names instead of assuming a container IP survives recreation. The default bridge has different name-resolution behavior. Upstream lookups are forwarded to configured DNS servers, so local name success does not prove upstream resolution. Container loopback is not host loopback. Diagnose in order: network membership, name resolution, target address and port, then application response. Avoid printing full inspect data that might include credentials.
Worked networking scenario
Offline design exercise only. All addresses, topology and observations are fictional; do not contact endpoints, change host networking, create a Swarm or modify firewall rules. A real verification requires an approved disposable environment and documented scope. Keep the exercise offline. For any separately authorized Docker verification, identify the effective endpoint (including DOCKER_HOST and DOCKER_CONTEXT) before sending even read-only Engine requests. Record server version and platform; redact sensitive metadata.
Synthetic incident (not captured output):client network: appapi network: app; alias: catalogcatalog resolves to 10.88.15.20TCP 8080: connection refusedapplication listening port: 8081The name resolves, but the client asks for the wrong port in this scenario. Correct the application endpoint to the intended listener after checking the contract. A resolved address alone says nothing about readiness. If the name fails to resolve, compare the network membership and alias first, not the firewall alone. Multiple replicas or duplicate aliases may return different addresses. A resolved address may still be stale or unexpected. Compare it with the intended service identity before interpreting the refusal. In this fictional incident the documented listener port differs; after correcting the endpoint, a successful application response would still need separate evidence.
Common mistake
Do not hardcode a temporary IP to hide an alias or membership problem.
Manual practice
Change the fictional client membership to an unrelated network and explain the first check. Then restore membership and describe how to distinguish name resolution from readiness.
Use the offline worksheet lab-fixtures/docker-advanced-networking/05-dns-diagnostics/scenario.txt. No external connectivity or Docker installation is necessary for this task.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Embedded DNS, aliases and service diagnosis — Knowledge check
Interpret network design and diagnostic evidence without live infrastructure.
What does successful DNS resolution prove?
Where is embedded DNS documented on a custom network?
Which evidence best explains this incident?