[Pdns-dev] FW: Compiling a custom backend
erik at muttersbach.net
erik at muttersbach.net
Tue Jan 31 19:39:29 CET 2012
Update to my mail ... forgot the error when starting pdns_server.
$ ./pdns/pdns_server --launch=rest
Jan 31 19:37:59 Reading random entropy from '/dev/urandom'
Jan 31 19:37:59 Unable to load module '/usr/local/lib/librestbackend.so': /usr/local/lib/librestbackend.so: cannot open shared object file: No such file or directory
Jan 31 19:37:59 dnsbackend unable to load module in rest
$ ./pdns/pdns_server --list-modules
Jan 31 19:38:59 Reading random entropy from '/dev/urandom'
Modules available:
bind
geo
gmysql
pipe
random
Pipe should not be here, should it?
-----Original Message-----
From: erik at muttersbach.net
Sent: Dienstag, 31. Januar 2012 19:34
To: 'pdns-dev at mailman.powerdns.com'
Subject: Compiling a custom backend
Hi,
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?
Thanks,
Erik
More information about the Pdns-dev
mailing list