[Pdns-dev] Compiling a custom backend

Erik Muttersbach erik at muttersbach.net
Thu Feb 2 00:46:32 CET 2012


The REST backend advances and already works for basic lookups, but I've got
a question regarding the configuration file: If I start powerdns from the
build directory like this:

--launch=rest --load-modules=./modules/restbackend/.libs/librestbackend.so

Which config file is read? As far as I have observed the /etc/powerdns/...
files are not used.

Thanks,
Erik

-----Original Message-----
From: Peter van Dijk [mailto:peter.van.dijk at netherlabs.nl] 
Sent: Dienstag, 31. Januar 2012 22:23
To: Erik Muttersbach
Subject: Re: [Pdns-dev] Compiling a custom backend

Looking forward to it. Again, let me (or pdns-dev :) know when you need
help.

Cheers, Peter

On Jan 31, 2012, at 22:22 , Erik Muttersbach wrote:

> Yes I plan to do so. I will inform you when I get a version worth 
> looking at.
> 
> Erik
> 
> -----Original Message-----
> From: Peter van Dijk [mailto:peter.van.dijk at netherlabs.nl]
> Sent: Dienstag, 31. Januar 2012 22:19
> To: Erik Muttersbach
> Subject: Re: [Pdns-dev] Compiling a custom backend
> 
> Good to hear! I had been pondering a HTTP-based backend for a while. 
> Will you be open sourcing your work?
> 
> Cheers, Peter
> 
> On Jan 31, 2012, at 22:18 , Erik Muttersbach wrote:
> 
>> Thanks a lot for the link! Actually I was just searching for such a 
>> change set some minutes ago.
>> 
>> I forgot the line
>> 
>> static TinyDNSLoader tinydnsloader;
>> 
>> which does the trick :)
>> 
>> Thanks!
>> 
>> Erik
>> 
>> 
>> -----Original Message-----
>> From: pdns-dev-bounces at mailman.powerdns.com
>> [mailto:pdns-dev-bounces at mailman.powerdns.com] On Behalf Of Peter van 
>> Dijk
>> Sent: Dienstag, 31. Januar 2012 22:06
>> To: pdns-dev at mailman.powerdns.com
>> Subject: Re: [Pdns-dev] Compiling a custom backend
>> 
>> Hello Erik,
>> 
>> On Jan 31, 2012, at 19:34 , erik at muttersbach.net wrote:
>> 
>>> I would like to develop a custom backend that uses a HTTP rest 
>>> service for
>> resolving requests. So far I have made the following customizations 
>> in the source code, checked out from SVN:
>>> 
>>> 1. In configure.ac I changed the line modules="gmysql geo" to
>> modules="gmysql geo rest"
>>> 2. I created a new folder under modules called restbackend with two 
>>> source
>> files: restbackend.cc (http://pastebin.com/CmFhVJP4) and 
>> restbackend.hh
>> (http://pastebin.com/G1aDGRHt) and empty file OBJECTLIBS a file 
>> OBJECTFILES with the content "restbackend.o".
>>> 
>>> Running ./bootstrap, ./configure and then make works well. 
>>> Unfortunately
>> the command ./pdns/pdns_server --launch=rest will fail with the 
>> following
>> message:
>>> 
>>> Whats wrong or missing here?
>> 
>> Just some quick notes from my limited experiences in working on the
>> tinydnsbackend:
>> - unless you 'make install', you will have to do something like 
>> --load-modules=./modules/tinydnsbackend/.libs/libtinydnsbackend.so in 
>> addition to the --launch
>> - i believe
>> https://github.com/Habbie/powerdns/commit/264fa3874048f57e7296f981571
>> 2
>> 16c25b
>> 2af174 contains all the changes i had to make to get the backend to 
>> compile and load
>> 
>> I hope this helps; do not hesitate to ask more questions!
>> 
>> Kind regards,
>> Peter van Dijk
>> 
>> _______________________________________________
>> Pdns-dev mailing list
>> Pdns-dev at mailman.powerdns.com
>> http://mailman.powerdns.com/mailman/listinfo/pdns-dev
>> 
> 
> 




More information about the Pdns-dev mailing list