[Pdns-users] named view migration

eli glynn junknot at gmail.com
Thu Aug 4 18:03:17 UTC 2022


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).

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.

Thanks,
t.


On Wed, Aug 3, 2022 at 4:46 AM frank+pdns--- via Pdns-users <
pdns-users at mailman.powerdns.com> wrote:

> Hi,
>
> 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.
>
> Frank
>
>
> On 3 Aug 2022, at 10:10, lovi <lovilak at gmail.com> wrote:
>
> Hello,
>
> Thanks for this answer.
> I might havent well explained :
> 1 - I have a zone : mycompany.tld
> 2 - this zone is splitted with named in 2 views : siteA and siteB
> 3 - I had to duplicate all my recordds in this 2 views
> 4- I only have a few difference for example (cname for ntp, proxy, ..)
>
> I dont think this configuration of duplicating records is a good idea and
> I might find with powerdns someting better to do, maybe ?
> - like rules  with dnsdist : could it detect that if a query comes it
> could respond a particular answer
> or .. ?
>
>
> Le mar. 2 août 2022 à 20:09, frank+pdns at tembo.be <frank+pdns at tembo.be> a
> écrit :
>
>> Hi Lovi,
>>
>> While you're correct that PowerDNS doesn't have views, you can simulate
>> views using dnsdist (see
>> https://www.frank.be/implementing-bind-views-with-powerdns/)
>>
>> Frank
>>
>>
>> On 2 Aug 2022, at 14:46, lovi via Pdns-users <
>> pdns-users at mailman.powerdns.com> wrote:
>>
>> Hello,
>>
>> Im running a bind/named ns master, with view zone such as :
>> azone.com in siteA = bzone.com in siteB but only some cname records are
>> differents like proxy, ntp, ..
>> 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 ?
>>
>> Best Regards
>> _______________________________________________
>> Pdns-users mailing list
>> Pdns-users at mailman.powerdns.com
>> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>>
>>
>>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220804/3a73c663/attachment.htm>


More information about the Pdns-users mailing list