DNS resolves queries hierarchically: from root servers to authoritative servers, passing through recursive resolvers.
The resolution process involves several steps: the recursive resolver queries root servers, which delegate to TLD servers, which in turn delegate to the domain’s authoritative nameservers. Google Cloud documents that this process can involve multiple queries before obtaining the final answer [1]. DNS records (A, AAAA, CNAME, MX, TXT, etc.) store the information the resolver returns.