[Pdns-users] Problems with NAPTR records (Debian Sarge)

Kostas Zorbadelos kzorba at otenet.gr
Wed Mar 1 16:56:10 UTC 2006


Hello to everyone.
I am a newcomer to PowerDNS and I am interested in deploying it in an
ENUM setup. The data need to be stored in an LDAP backend.
I am running Debian Sarge and I installed the necessary packages. I am
using SUN JES ldap server. I populated data for the appropriate zones
and while I can get answers to queries about SOA or A records, I
cannot get answers for NAPTR records that interest me.

Example data:

dn: ou=domains,dc=otenet,dc=gr
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: domains

dn: dc=e164.arpa,ou=domains,dc=otenet,dc=gr
changetype: add
objectclass: otenetDNSDomain
objectclass: domainrelatedobject
dc: e164.arpa
associateddomain: e164.arpa
SOARecord: tagoba.otenet.gr root 2006022801 10800 36288000 604800 86400

dn: dc=e164.arpa,ou=domains,dc=otenet,dc=gr
changetype: modify
add: NSRecord
NSRecord: tagoba.otenet.gr

dn: dc=6.1.2.8.9.8.3.0.1.2.0.3,dc=e164.arpa,ou=domains,dc=otenet,dc=gr
changetype: add
objectclass: otenetDNSDomain
objectclass: domainrelatedobject
dc: 6.1.2.8.9.8.3.0.1.2.0.3
associateddomain: 6.1.2.8.9.8.3.0.1.2.0.3.e164.arpa
NAPTRRecord: 10 100 u E2U+sip !^.*$!sip:kmar at sip1.sip.otenet.gr!

dn: dc=3.1.2.8.9.8.3.0.1.2.0.3,dc=e164.arpa,ou=domains,dc=otenet,dc=gr
changetype: add
objectclass: otenetDNSDomain
objectclass: domainrelatedobject
dc: 3.1.2.8.9.8.3.0.1.2.0.3
associateddomain: 3.1.2.8.9.8.3.0.1.2.0.3.e164.arpa
NAPTRRecord: 10 100 u E2U+sip !^.*$!sip:prod2 at 212.205.221.1!

The otenetDNSDomain is the name I gave to the dnsdomain2 class
described in (http://www.linuxnetworks.de/pdnsldap/index.html). These
data were generated using zone2ldap with the appropriate BIND zone. 

Versions of Sarge packages:

ii  pdns           2.9.17-13sarge meta package for the pdns nameserver
ii  pdns-backend-l 2.9.17-13sarge LDAP backend for PowerDNS
ii  pdns-doc       2.9.17-13sarge PowerDNS manual
ii  pdns-recursor  2.9.17-13sarge PowerDNS recursor
ii  pdns-server    2.9.17-13sarge extremely powerful and versatile nameserver

Is something wrong to the way NAPTR records are stored in ldap?

I tried to download the latest sources of PowerDNS (2.9.19) both from
www.powerdns.com and from the debian archive, installed
boost debian packages,  but the compilation fails
with the messages below:

 
kzorba at tagoba(0)[06:28 PM]~/WorkingArea/pdns-2.9.19>make
make  all-recursive
make[1]: Entering directory `/home/kzorba/WorkingArea/pdns-2.9.19'
Making all in modules
make[2]: Entering directory `/home/kzorba/WorkingArea/pdns-2.9.19/modules'
make[3]: Entering directory `/home/kzorba/WorkingArea/pdns-2.9.19'
make[3]: Leaving directory `/home/kzorba/WorkingArea/pdns-2.9.19'
Making all in ldapbackend
make[3]: Entering directory `/home/kzorba/WorkingArea/pdns-2.9.19/modules/ldapbackend'
make[4]: Entering directory `/home/kzorba/WorkingArea/pdns-2.9.19'
make[4]: Leaving directory `/home/kzorba/WorkingArea/pdns-2.9.19'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../..     -D_GNU_SOURCE  -Wall -O2 -MT ldapbackend.lo -MD -MP -MF ".deps/ldapbackend.Tpo" -c -o ldapbackend.lo ldapbackend.cc; \
then mv -f ".deps/ldapbackend.Tpo" ".deps/ldapbackend.Plo"; else rm -f ".deps/ldapbackend.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_GNU_SOURCE -Wall -O2 -MT ldapbackend.lo -MD -MP -MF .deps/ldapbackend.Tpo -c ldapbackend.cc  -fPIC -DPIC -o .libs/ldapbackend.o
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_GNU_SOURCE -Wall -O2 -MT ldapbackend.lo -MD -MP -MF .deps/ldapbackend.Tpo -c ldapbackend.cc -o ldapbackend.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../..     -D_GNU_SOURCE  -Wall -O2 -MT powerldap.lo -MD -MP -MF ".deps/powerldap.Tpo" -c -o powerldap.lo powerldap.cc; \
then mv -f ".deps/powerldap.Tpo" ".deps/powerldap.Plo"; else rm -f ".deps/powerldap.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -D_GNU_SOURCE -Wall -O2 -MT powerldap.lo -MD -MP -MF .deps/powerldap.Tpo -c powerldap.cc  -fPIC -DPIC -o .libs/powerldap.o
In file included from powerldap.cc:1:
powerldap.hh:72: error: type specifier omitted for parameter `uint16_t'
powerldap.hh:72: error: parse error before `=' token
powerldap.cc:5: error: type specifier omitted for parameter `uint16_t'
powerldap.cc:5: error: parse error before `,' token
make[3]: *** [powerldap.lo] Error 1
make[3]: Leaving directory `/home/kzorba/WorkingArea/pdns-2.9.19/modules/ldapbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kzorba/WorkingArea/pdns-2.9.19/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kzorba/WorkingArea/pdns-2.9.19'
make: *** [all] Error 2
kzorba at tagoba(0)[06:28 PM]~/WorkingArea/pdns-2.9.19>cd

Can anyone help me with this?
As I read, PowerDNS is commonly used for ENUM setups.

Thanks in advance,
Kostas

-- 
  Kostas Zorbadelos
  m at il contact: kzorba (at) otenet.gr
  
  Out there in the darkness, out there in the night
  out there in the starlight, one soul burns brighter
  than a thousand suns.



More information about the Pdns-users mailing list