The recursive resolver sends the query to the authoritative name servers, which are responsible for storing and providing the DNS records for the specific domain.
These authoritative name servers respond with the requested DNS records, including the IP address associated with the domain or other relevant information.
The recursive resolver receives the DNS response from the authoritative name servers and relays it back to the client that initiated the query.
The client can then use the obtained information, such as the IP address, to establish a connection to the desired website or perform the intended action.
To improve performance and reduce the load on DNS infrastructure, DNS resolvers often cache the obtained DNS records.
This caching enables subsequent DNS queries for the same domain to be resolved more quickly, as the resolver can retrieve the information from its local cache instead of querying the DNS hierarchy again.
see also
DNS Lookup