Your DNS is Lying to You
Your DNS is Lying to You What Actually Happens Between a URL and the First Byte Reading time: ~13 minutes You typed api.example.com into your browser — or curl'd it, or your service tried to connec...

Source: DEV Community
Your DNS is Lying to You What Actually Happens Between a URL and the First Byte Reading time: ~13 minutes You typed api.example.com into your browser — or curl'd it, or your service tried to connect to it — and something happened. Some bytes arrived. You moved on. It is not a lookup table. It is a distributed, eventually consistent database with a 40-year-old trust model, deployed across millions of machines that have no obligation to agree with each other. When it goes wrong — and it does go wrong — the failure modes are some of the most maddening in all of networking, because the answer you get looks valid. It's just wrong. There are four distinct roles. Most people know one of them. The Bug That Made This Click Picture this: a microservice can't connect to a dependency. Health checks pass. curl works fine from your laptop. The service throws connection errors that make no sense. The service is running in a Docker container. Inside the container, curl api.internal.corp returns a diff