A hostname lookup on Linux is rarely just “send a DNS query.”
It is usually a chain:
local mappings,
source order rules,
client resolver settings,
maybe a local cache,
and only then external DNS.
That is why tools can disagree while each still looks “correct.”
If you want to debug name resolution properly, do not ask only what DNS says.
Ask which layer answered first.

Top comments (0)