class Pdns::Remotebackend::Handler
Attributes
Public Class Methods
Initialize with defaults values
# File lib/pdns/remotebackend.rb, line 11 def initialize @log = [] @result = false @ttl = 300 @params = {} end
Public Instance Methods
# File lib/pdns/remotebackend.rb, line 132 def do_aborttransaction(args) end
# File lib/pdns/remotebackend.rb, line 78 def do_activatedomainkey(args) end
# File lib/pdns/remotebackend.rb, line 72 def do_adddomainkey(args) end
# File lib/pdns/remotebackend.rb, line 135 def do_calculatesoaserial(args) end
# File lib/pdns/remotebackend.rb, line 129 def do_committransaction(args) end
# File lib/pdns/remotebackend.rb, line 102 def do_createslavedomain(args) end
# File lib/pdns/remotebackend.rb, line 81 def do_deactivatedomainkey(args) end
# File lib/pdns/remotebackend.rb, line 120 def do_deletetsigkey(args) end
# File lib/pdns/remotebackend.rb, line 111 def do_feedents(args) end
# File lib/pdns/remotebackend.rb, line 114 def do_feedents3(args) end
# File lib/pdns/remotebackend.rb, line 105 def do_feedrecord(args) end
# File lib/pdns/remotebackend.rb, line 87 def do_getbeforeandafternamesabsolute(args) end
# File lib/pdns/remotebackend.rb, line 96 def do_getdomaininfo(args) end
# File lib/pdns/remotebackend.rb, line 75 def do_getdomainkeys(args) end
# File lib/pdns/remotebackend.rb, line 66 def do_getdomainmetadata(args) end
# File lib/pdns/remotebackend.rb, line 90 def do_gettsigkey(args) end
# File lib/pdns/remotebackend.rb, line 123 def do_gettsigkeys(*args) end
# 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
# File lib/pdns/remotebackend.rb, line 63 def do_list(args) end
# File lib/pdns/remotebackend.rb, line 60 def do_lookup(args) end
# File lib/pdns/remotebackend.rb, line 84 def do_removedomainkey(args) end
# File lib/pdns/remotebackend.rb, line 108 def do_replacerrset(args) end
# File lib/pdns/remotebackend.rb, line 69 def do_setdomainmetadata(args) end
# File lib/pdns/remotebackend.rb, line 93 def do_setnotified(args) end
# File lib/pdns/remotebackend.rb, line 117 def do_settsigkey(args) end
# File lib/pdns/remotebackend.rb, line 126 def do_starttransaction(args) end
# File lib/pdns/remotebackend.rb, line 99 def do_supermasterbackend(args) end
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
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
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