Interview practice question
Container cannot resolve external hostnames
Cloud & DevOps · Docker · Intermediate
An application in a container fails with DNS errors when calling external APIs, but the host resolves the names fine. What do you check?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Check /etc/resolv.conf in container.
- Host using local resolver (127.0.0.53) not reachable from container.
- Corporate DNS/VPN settings.
- Configure dns in daemon.json or --dns.
- Test with nslookup inside container.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.