11.3.4.6. How internal name servers use internal roots
To tie together how this whole scheme works, let's go through
an example of name resolution on an internal caching-only name server
using these internal root name servers. First, the internal name
server receives a query for a domain name in
movie.edu, say the address of
gump.fx.movie.edu. If the
internal name server doesn't have any "better"
information cached, it starts by querying an internal root name
server. If it has communicated with the internal roots before, it has
a roundtrip time associated with each, telling it which of the
internal roots is responding to it most quickly. It then sends a
nonrecursive query to that internal root for
gump.fx.movie.edu's address. The
internal root answers with a referral to the
movie.edu name servers on
terminator.movie.edu,
wormhole.movie.edu, and
zardoz.movie.edu. The caching-only name
server follows up by sending another nonrecursive query to one of the
movie.edu name servers for
gump.fx.movie.edu's
address. The
movie.edu name
server responds with a referral to the
fx.movie.edu name servers. The
caching-only name server sends the same nonrecursive query for
gump.fx.movie.edu's
address to one of the
fx.movie.eduname servers and finally receives a response.
Contrast this with the way a forwarding setup would work. Let's
imagine that instead of using internal root name servers, our
caching-only name server were configured to forward queries first to
terminator.movie.edu and
then to wormhole.movie.edu.
In that case, the caching-only name server would check its cache for
the address of gump.fx.movie.eduand, not finding it, would forward the query to
terminator.movie.edu. Then,
terminator.movie.edu would
query an fx.movie.edu name
server on the caching-only name server's behalf and return the
answer. Should the caching-only name server need to look up another
name in fx.movie.edu, it
would still ask the forwarder, even though the forwarder's
response to the query for gump.fx.movie.edu's address
probably contains the names and addresses of the fx.movie.edu name servers.