Djbdns support

Rebase djbdns support for "dev" branch.