[Pdns-users] PowerDNS Dynamic Record Generation with LUA script

Ankit Rathod ankit.rathod1989 at gmail.com
Thu May 23 05:50:39 UTC 2024


Dear Team,

I am working on powerdns project.
I have set up PowerDNS Server and recursor @ one of ISP, the Issue I am
facing in Generating IPV6 Reverse records.

I need your Valuable help to pinpoint my mistake.

I am using Pdns Server version 4.5.4 with gsqlite3 backend and Recursor
version is 4.5.11

I can successfully get a Static Reverse entry made in a zone file but
unable to get a Dynamic entry Answer (LUA ).

following are zone file for your ready reference,
IPv6 pool: 2001:df1:cbc0::/48
========================================

root at ns1-RTEL-in:~# pdnsutil list-zone 0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa
Apr 20 13:57:49 gsqlite3: connection to '/var/lib/powerdns/pdns.sqlite3'
successful
Apr 20 13:57:49 gsqlite3: connection to '/var/lib/powerdns/pdns.sqlite3'
successful
Apr 20 13:57:49 [bindbackend] Parsing 0 domain(s), will report when done
Apr 20 13:57:49 [bindbackend] Done parsing domains, 0 rejected, 0 new, 0
removed
$ORIGIN .
*       3600    IN      LUA     PTR "createReverse6('%33%.static6.rtel.in')"
0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa        3600    IN      NS      ns1.rtel.in.
0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa        3600    IN      NS      ns2.rtel.in.
0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa        3600    IN      SOA     ns1.rtel.in
info.rtel.in 2023062314 10800 3600 604800 3600
1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.0.0.0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa
     3600    IN      PTR     ns1.rtel.in
1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.4.0.0.0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa
     3600    IN      PTR     ns2.rtel.in
8.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.0.0.0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa
     3600    IN      PTR     ankit.rtel.in
===============================================================================
NSLookUP results
===============================================================================
root at ns1-RTEL-in:~# nslookup *2001:df1:cbc0:40::11*  ::1
1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.0.0.0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa
     name = ns1.rtel.in.

Authoritative answers can be found from:

root at ns1-RTEL-in:~# *nslookup 2001:df1:cbc0:40::8  ::1*
** server can't find
8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.0.0.0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa:
*NXDOMAIN*

*================================================================*
*recursor.conf  file data*

forward-zones+=0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa=127.0.0.1:5300
forward-zones-recurse+=0.c.b.c.1.f.d.0.1.0.0.2.ip6.arpa=127.0.0.1:5300


*Kindly help me with this. I have also attached the whole pdns.conf and
recursor.conf file for your reference.*

*Thanks in Advance.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20240523/6f894c7e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdns.conf
Type: application/octet-stream
Size: 712 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20240523/6f894c7e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recursor.conf
Type: application/octet-stream
Size: 1462 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20240523/6f894c7e/attachment-0001.obj>


More information about the Pdns-users mailing list