class DNS::Zone::RR::NSEC3
‘NSEC3` resource record.
RFC 5155
Constants
- REGEX_NSEC3_RDATA
Attributes
algorithm[RW]
flags[RW]
iterations[RW]
next_hashed_owner_name[RW]
rrset_types[RW]
salt[RW]
Public Instance Methods
dump()
click to toggle source
# File lib/dns/zone/rr/nsec3.rb, line 18 def dump parts = general_prefix parts << algorithm parts << flags parts << iterations parts << salt parts << next_hashed_owner_name parts << rrset_types parts.join(' ') end
load(string, options = {})
click to toggle source
# File lib/dns/zone/rr/nsec3.rb, line 29 def load(string, options = {}) rdata = load_general_and_get_rdata(string, options) return nil unless rdata captures = rdata.match(REGEX_NSEC3_RDATA) return nil unless captures @algorithm = captures[:algorithm].to_i @flags = captures[:flags].to_i @iterations = captures[:iterations].to_i @salt = captures[:salt] @next_hashed_owner_name = captures[:next_hashed_owner_name] @rrset_types = captures[:rrset_types] self end