The resolver starts at the root, queries TLD servers, then the domain's authoritative server, and caches the response according to TTL.
The process begins with a query to a root server, which returns a referral to the TLD server. It then queries the TLD server, which returns the domain's authoritative server, and finally obtains the answer [1]. The resolver caches the response for the TTL to speed future queries. It may use forwarding to another resolver instead of full recursion.