<div dir="ltr"><div>Hi Frank, this is essentially identical to the problem I posed in the "Overlay or pass-through support in PDNS?" thread from earlier this week.  Some way to avoid duplicate entries in "shadow zones", and instead have PowerDNS perform the needed recursion if a record is not found in the local authoritative zone (that is, an NXDOMAIN).</div><div><br></div><div>My digging so far leads to using a Lua `postresolve()` hook (or `nxdomain()` + `nodata()` to achieve much the same thing).  I'm still trying to get some working code implementing the recursion part though.</div><div><br></div><div>Thanks,</div><div>t.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 3, 2022 at 4:46 AM frank+pdns--- via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com" target="_blank">pdns-users@mailman.powerdns.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi,<div><br></div><div>That's certainly possible, you could also use LUA records directly in PowerDNS to decide what the reply would be. This would prevent the duplication.</div><div><br></div><div>Frank</div><div><br><div><br><blockquote type="cite"><div>On 3 Aug 2022, at 10:10, lovi <<a href="mailto:lovilak@gmail.com" target="_blank">lovilak@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Hello,<div><br><div>Thanks for this answer. </div><div>I might havent well explained :</div></div><div>1 - I have a zone : mycompany.tld</div><div>2 - this zone is splitted with named in 2 views : siteA and siteB</div><div>3 - I had to duplicate all my recordds in this 2 views </div><div>4- I only have a few difference for example (cname for ntp, proxy, ..)</div><div><br></div><div>I dont think this configuration of duplicating records is a good idea and I might find with powerdns someting better to do, maybe ?</div><div>- like rules  with dnsdist : could it detect that if a query comes it could respond a particular answer</div><div>or .. ?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 2 août 2022 à 20:09, <a href="mailto:frank%2Bpdns@tembo.be" target="_blank">frank+pdns@tembo.be</a> <<a href="mailto:frank%2Bpdns@tembo.be" target="_blank">frank+pdns@tembo.be</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Lovi,<div><br></div><div>While you're correct that PowerDNS doesn't have views, you can simulate views using dnsdist (see <a href="https://www.frank.be/implementing-bind-views-with-powerdns/" target="_blank">https://www.frank.be/implementing-bind-views-with-powerdns/</a>)</div><div><br></div><div>Frank</div><div><br><div><div><div><br><blockquote type="cite"><div>On 2 Aug 2022, at 14:46, lovi via Pdns-users <<a href="mailto:pdns-users@mailman.powerdns.com" target="_blank">pdns-users@mailman.powerdns.com</a>> wrote:</div><br><div><div dir="ltr">Hello,<div><br></div><div>Im running a bind/named ns master, with view zone such as : </div><div><a href="http://azone.com/" target="_blank">azone.com</a> in siteA = <a href="http://bzone.com/" target="_blank">bzone.com</a> in siteB but only some cname records are differents like proxy, ntp, .. </div><div>As im looking to use powerdns and as I know powerdns do not deal with named views  : what would be the best way to move this configuration ?</div><div><br></div><div>Best Regards</div></div>
_______________________________________________<br>Pdns-users mailing list<br><a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br><a href="https://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div>
</div></blockquote></div><br></div></div>_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com" target="_blank">Pdns-users@mailman.powerdns.com</a><br>
<a href="https://mailman.powerdns.com/mailman/listinfo/pdns-users" rel="noreferrer" target="_blank">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
</blockquote></div>