class Pdns::Remotebackend::Handler

Attributes

log[RW]
result[RW]
ttl[RW]

Public Class Methods

new() click to toggle source

Initialize with defaults values

# File lib/pdns/remotebackend.rb, line 11
def initialize
  @log = []
  @result = false
  @ttl = 300
  @params = {}
end

Public Instance Methods

do_aborttransaction(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 132
def do_aborttransaction(args)
end
do_activatedomainkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 78
def do_activatedomainkey(args) 
end
do_adddomainkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 72
def do_adddomainkey(args)
end
do_calculatesoaserial(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 135
def do_calculatesoaserial(args)
end
do_committransaction(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 129
def do_committransaction(args)
end
do_createslavedomain(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 102
def do_createslavedomain(args)
end
do_deactivatedomainkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 81
def do_deactivatedomainkey(args)
end
do_deletetsigkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 120
def do_deletetsigkey(args)
end
do_feedents(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 111
def do_feedents(args)
end
do_feedents3(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 114
def do_feedents3(args)
end
do_feedrecord(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 105
def do_feedrecord(args)
end
do_getbeforeandafternamesabsolute(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 87
def do_getbeforeandafternamesabsolute(args)
end
do_getdomaininfo(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 96
def do_getdomaininfo(args) 
end
do_getdomainkeys(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 75
def do_getdomainkeys(args) 
end
do_getdomainmetadata(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 66
def do_getdomainmetadata(args)
end
do_gettsigkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 90
def do_gettsigkey(args) 
end
do_gettsigkeys(*args) click to toggle source
# File lib/pdns/remotebackend.rb, line 123
def do_gettsigkeys(*args)
end
do_initialize(*args) click to toggle source
# File lib/pdns/remotebackend.rb, line 54
def do_initialize(*args)
  @params = args[0]
  @log << "PowerDNS ruby remotebackend version #{Pdns::Remotebackend::VERSION} initialized"
  @result = true
end
do_list(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 63
def do_list(args)
end
do_lookup(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 60
def do_lookup(args) 
end
do_removedomainkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 84
def do_removedomainkey(args)
end
do_replacerrset(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 108
def do_replacerrset(args)
end
do_setdomainmetadata(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 69
def do_setdomainmetadata(args)
end
do_setnotified(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 93
def do_setnotified(args) 
end
do_settsigkey(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 117
def do_settsigkey(args) 
end
do_starttransaction(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 126
def do_starttransaction(args) 
end
do_supermasterbackend(args) click to toggle source
# File lib/pdns/remotebackend.rb, line 99
def do_supermasterbackend(args) 
end
record(qname,qtype,content,auth=1) click to toggle source

Generates a hash of resource record

@param [String] qname name of record @param [String] qtype type of record @param [String] content record contents @param [Integer] auth Whether we are authoritative for the record or not @return [Hash] A resource record hash

# File lib/pdns/remotebackend.rb, line 50
def record(qname,qtype,content,auth=1)
  record_prio_ttl(qname,qtype,content,0,@ttl,auth)
end
record_prio(qname,qtype,content,prio,auth=1) click to toggle source

Generates a hash of resource record

@param [String] qname name of record @param [String] qtype type of record @param [String] content record contents @param [Integer] prio Record priority @param [Integer] auth Whether we are authoritative for the record or not @return [Hash] A resource record hash

# File lib/pdns/remotebackend.rb, line 39
def record_prio(qname,qtype,content,prio,auth=1)
  record_prio_ttl(qname,qtype,content,prio,@ttl,auth)
end
record_prio_ttl(qname,qtype,content,prio,ttl,auth=1) click to toggle source

Generates a hash of resource record

@param [String] qname name of record @param [String] qtype type of record @param [String] content record contents @param [Integer] prio Record priority @param [Integer] ttl Record TTL @param [Integer] auth Whether we are authoritative for the record or not @return [Hash] A resource record hash

# File lib/pdns/remotebackend.rb, line 27
def record_prio_ttl(qname,qtype,content,prio,ttl,auth=1)
  {:qtype => qtype, :qname => qname, :content => content, :priority => prio, :ttl => ttl, :auth => auth}
end