I'm trying to figure out how to build a DNS response that refers the requesting client to try resolve from a different DNS server.
For example,
Client PCmakes a request to resolve A record"google.com"fromDNS server #1DNS server #1reply with a referral toDNS server #2Client PCmakes a request to resolve A record"google.com"fromDNS server #2DNS server #2reply with a matching A record for"google.com"
How to build a DNS response that refers the client to try resolve from a different DNS server?
Note - I know the best practice is to set the DNS server to recurse the request. However, I purposely want the client to do the hard work.

dnsmasqfor example is a simple tool for simple cases like that. Also you are not explaining why you need to do that, and it could help as there are sometimes wrong motivations behind things like that or other way to filter/censor stuff, like bind RPZ feature.