How a lookup works
Your device asks a recursive resolver (often your ISP or 1.1.1.1). The resolver queries root, TLD and authoritative nameservers until it gets an answer.
Results are cached with TTL values to reduce load. Stale caches during attacks can prolong outages if TTLs are too high.