The zone's expire interval. How often, in seconds, a secondary nameserver is to use the data before refreshing from the primary nameserver
The minimum (default) TTL for records in this zone.
The domain name of the original or primary nameserver for this zone.
The zone's refresh interval. How often, in seconds, a secondary nameserver is to check for updates from the primary nameserver.
The zone's retry interval. How often, in seconds, a secondary nameserver is to retry, after a failure to check for a refresh
A domain name that specifies the mailbox for the person responsible for this zone.
The zone's serial number.
# File lib/Dnsruby/resource/SOA.rb, line 49 def from_hash(hash) @mname = Name.create(hash[:mname]) @rname = Name.create(hash[:rname]) @serial = hash[:serial].to_i @refresh = hash[:refresh].to_i @retry = hash[:retry].to_i @expire = hash[:expire].to_i @minimum = hash[:minimum].to_i end
# File lib/Dnsruby/resource/SOA.rb, line 59 def from_string(input) if (input.length > 0) names = input.split(" ") @mname = Name.create(names[0]) @rname = Name.create(names[1]) @serial = names[2].to_i @refresh = names[3].to_i @retry = names[4].to_i @expire = names[5].to_i @minimum = names[6].to_i end end