Parent

Class Index [+]

Quicksearch

Dnsruby::RR::SOA

Constants

TypeValue

Attributes

mname[RW]

The domain name of the original or primary nameserver for this zone.

rname[RW]

A domain name that specifies the mailbox for the person responsible for this zone.

serial[RW]

The zone’s serial number.

refresh[RW]

The zone’s refresh interval. How often, in seconds, a secondary nameserver is to check for updates from the primary nameserver.

retry[RW]

The zone’s retry interval. How often, in seconds, a secondary nameserver is to retry, after a failure to check for a refresh

expire[RW]

The zone’s expire interval. How often, in seconds, a secondary nameserver is to use the data before refreshing from the primary nameserver

minimum[RW]

The minimum (default) TTL for records in this zone.

Public Instance Methods

from_hash(hash) click to toggle source
    # File lib/Dnsruby/resource/SOA.rb, line 49
49:       def from_hash(hash)
50:         @mname = Name.create(hash[:mname])
51:         @rname = Name.create(hash[:rname])
52:         @serial = hash[:serial]
53:         @refresh = hash[:refresh]
54:         @retry = hash[:retry]
55:         @expire = hash[:expire]
56:         @minimum = hash[:minimum]
57:       end
from_string(input) click to toggle source
    # File lib/Dnsruby/resource/SOA.rb, line 59
59:       def from_string(input)
60:         if (input.length > 0)
61:           names = input.split(" ")
62:           @mname = Name.create(names[0])
63:           @rname = Name.create(names[1])
64:           @serial = names[2].to_i
65:           @refresh = names[3].to_i
66:           @retry = names[4].to_i
67:           @expire = names[5].to_i
68:           @minimum = names[6].to_i
69:         end
70:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.