add pdns module

module for pdns server
It looks like this has the potential to be really messy -- is the debug printing really necessary at all times?