[Pdns-dev] Compiling a custom backend
Erik Muttersbach
erik at muttersbach.net
Tue Jan 31 22:22:52 CET 2012
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/264fa3874048f57e7296f9815712
> 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