[Pdns-dev] Compiling a custom backend
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:
Which config file is read? As far as I have observed the /etc/powerdns/...
files are not used.
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
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.
> -----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 :)
>> -----Original Message-----
>> From: pdns-dev-bounces at mailman.powerdns.com
>> [mailto:pdns-dev-bounces at mailman.powerdns.com] On Behalf Of Peter van
>> 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
>> files: restbackend.cc (http://pastebin.com/CmFhVJP4) and
>> (http://pastebin.com/G1aDGRHt) and empty file OBJECTLIBS a file
>> OBJECTFILES with the content "restbackend.o".
>>> Running ./bootstrap, ./configure and then make works well.
>> the command ./pdns/pdns_server --launch=rest will fail with the
>>> Whats wrong or missing here?
>> Just some quick notes from my limited experiences in working on the
>> - 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
>> 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
More information about the Pdns-dev