How does the DNS server react to the request?

When processing requests for specific names, the DNS server takes advantage of all of the information available to it:

If the requested name cannot be found in any of the information sources available to it, the DNS server sends the request to another server—that of the Internet provider, for example—using the general DNS forwarding mechanism, or returns an error message to the requesting computer.