> On 7 May 2025, at 10:04, Nacho Oppo via Pdns-users > <pdns-users@mailman.powerdns.com> wrote: > > The goal is to configure PowerDNS so that it first checks an A record in a > MySQL backend, and if the record is not found o if database does´not respond, > it should forward the query to an external DNS server, such as Google’s > (8.8.8.8).
Is this really the goal your professor gave you? Unless this is for one or two corporate domains, considered to be a bad practice in general. That being said, if the records come from a MySQL database, you'll need to query the database from Lua in a preresolve() hook OR (much better solution) you'll need multiple components. Crucial in that last solution is that the resolver (or dnsdist, as that might make things easier) knows which domains are "local" and thus need to be send to PowerDNS Auth, and which aren't, and need to be sent to Google. But please, reread paragraph 1. Also check with your professor if you've correctly understood the assignment, as this sounds like a bad practice. Kind Regards, Frank Louwers PowerDNS Certified Consultant @ Kiwazo.com
_______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/pdns-users