Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <map>
- #include <unistd.h>
- #include <stdlib.h>
- #include <sstream>
- #include "pdns/namespaces.hh"
- #include <pdns/dns.hh>
- #include <pdns/dnsbackend.hh>
- #include <pdns/dnspacket.hh>
- #include <pdns/ueberbackend.hh>
- #include <pdns/ahuexception.hh>
- #include <pdns/logger.hh>
- #include <pdns/arguments.hh>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <boost/lexical_cast.hpp>
- #include "restbackend.hh"
- RestBackend::RestBackend(const string &suffix) {
- }
- bool RestBackend::list(const string &target, int domain_id) {
- return false;
- }
- void RestBackend::lookup(const QType &type, const string &qdomain, DNSPacket *p, int zoneId) {
- }
- bool RestBackend::get(DNSResourceRecord &rr) {
- return false;
- }
- RestFactory::RestFactory() : BackendFactory("rest") {
- }
- DNSBackend *RestFactory::make(const string &suffix) {
- return new RestBackend(suffix);
- }
- RestLoader::RestLoader() {
- BackendMakers().report(new RestFactory);
- L
- << Logger::Info
- << " [RestBackend] This is the restbackend ("__DATE__", "__TIME__") reporting"
- << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement