be me, on call, quiet night app in a container is slow to reach another service "intermittent DNS timeouts" says the ticket tcpdump the container one lookup for
api.internalturns into FIVE lookupsapi.internal.svc.cluster.local,api.internal.cluster.local, a couple more, then finally the real nameoptions ndots:5in resolv.conf name has fewer than 5 dots so the resolver tries every search domain first each failed one is a round trip to a resolver with a tiny cache add a trailing dot to the hostname in the configapi.internal.means "this is already absolute, stop searching" latency drops to a tenth spend the morning writing a post-mortem about a trailing dot
Moral: check /etc/resolv.conf before blaming the network.