[Pdns-dev] Compiling a custom backend

erik at muttersbach.net erik at muttersbach.net
Tue Jan 31 19:34:13 CET 2012


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?


More information about the Pdns-dev mailing list