class DNS::Zone::RR::NSEC

`NSEC` resource record.

RFC 4034

Constants

REGEX_NSEC_RDATA

Attributes

next_domain[RW]
rrset_types[RW]

Public Instance Methods

dump() click to toggle source
# File lib/dns/zone/rr/nsec.rb, line 13
def dump
  parts = general_prefix
  parts << next_domain
  parts << rrset_types
  parts.join(' ')
end
load(string, options = {}) click to toggle source
# File lib/dns/zone/rr/nsec.rb, line 20
def load(string, options = {})
  rdata = load_general_and_get_rdata(string, options)
  return nil unless rdata

  captures = rdata.match(REGEX_NSEC_RDATA)
  return nil unless captures

  @next_domain = captures[:next_domain]
  @rrset_types = captures[:rrset_types]
  self
end