Re: [Ldapdns-devel] Bind dnsZone schema compatability?
Brought to you by:
nimh
|
From: Mrs. B. <mrs...@ni...> - 2004-03-12 04:20:18
|
On Thu, 2004-03-11 at 21:25, Troy Benjegerdes wrote: > What are your thoughts on adding support for the dNSZone schema at: > http://garibaldi.venaas.no/ldap/bind-sdb/ > http://garibaldi.venaas.no/ldap/bind-sdb/dnszone-schema.txt > > I could probably hack up the code if given an idea where to start > looking.. There was some code to do this at various points in LDAPDNS's history. It shouldn't be difficult to add it to LDAPDNS 3- look in attrsearch.c axfrsearch.c and zonesearch.c to see where to begin processing the result-set (make sure you examine your SCHEMA variable (ldapdns.schema == SCHEMA_BINDSDB?)) and add a function in ldapsearch.c that represents the search-command-building function (if you want to write out arguments to the OpenLDAP ldapsearch command, I'll help you put this together) Just remember: LDAPDNS 3 is shooting to be character-set agnostic, so use octal-escape sequences in ascii.h if you need new words. > In addition, I've also been looking at the powerdns ldap-backend, and it > has the capability to automatically generate 'PTR' records based on the > forward lookup records. This is nice, but it's only available as a > global configuration option. > > Is there a sane way to generate PTR records > off a regular ldapdns or other forward lookup entry? (I would prefer > adding an entry to the dNSZone schema) > > You'd obviously want to look through the regular 'in-addr.arpa' space > first, but if you don't get a hit there, and the foward lookup for that > IP has the right attribute, you return a corresponding reverse lookup. There's been some discussion about this in the past. The question is how can LDAPDNS tell which name is the address to return? Would it be the shortest? The longest? Based on some other attribute? There can be multiple aRecord entries but most clients doing PTR lookups will only accept the first... Do you know how PowerDNS resolves this issue? Do they bother? |