API

Remotebackend main module

PowerDNS remotebackend support module

class pdns.remotebackend.Connector(klass, options={})[source]

Connector base class for handling endless loop

handler = None

“Handler class

mainloop(reader, writer)[source]

Setup basic reader/writer and start correct main loop

mainloop3(reader, writer, h)[source]

Reader/writer and request de/serialization for pipe backend

mainloop4(reader, writer, h)[source]

Reader/writer and request de/serialization for remotebackend

options = None

Any options

class pdns.remotebackend.Handler[source]

Base class for request handler, you have to implement at least do_lookup. Please see http://doc.powerdns.com/html/remotebackend.html#remotebackend-api for information on how to implement anything. All methods get called with hash containing the request variables.

do_initialize(*args)[source]

Default handler for initialization method, stores any parameters into attribute params

log = None

Array of log messages

params = None

Any handler parameters you want to store

record(qname, qtype, content, auth=1)[source]

Generate one record with default ttl and prio (0)

record_prio(qname, qtype, content, prio, auth=1)[source]

Generate one record with default ttl

record_prio_ttl(qname, qtype, content, prio, ttl, auth=1)[source]

Generate one record without any defaults

result = None

Result of the invocation

ttl = None

Default TTL

class pdns.remotebackend.PipeConnector(klass, options={})[source]

Pipe Connector

run()[source]

Startup pipe connector with stdin/stdout as source/sink

pdns.remotebackend.VERSION = '0.6'

Module version string

Unix connector module

Unix connector module

class pdns.remotebackend.unix.UnixConnector(klass, options={})[source]

Connector class, which spawns a server and handler. Provide option path for constructor.

run()[source]

Start listening in options[‘path’] and spawn handler per connection. Your remotebackend handler class is rebuilt between connections.

class pdns.remotebackend.unix.UnixRequestHandler(request, client_address, server)[source]

Class implementing unix read/write server

handle()[source]

Handle connection

Table Of Contents

Previous topic

Getting started

Next topic

Contributors

This Page