Project

General

Profile

Download (494 Bytes) Statistics
| Branch: | Tag: | Revision:
module Net
module DNS
class PTR6Record < DNS::ReverseRecord
def initialize(opts = { })
super opts
self.ip = Validations.validate_ip6! self.ip
self.ipfamily = Socket::AF_INET6
end

def self.human(count = 1)
n_('Reverse IPv6 DNS record', 'Reverse IPv6 DNS records', count)
end

private

# Returns: String containing the ip in the ip6.arpa zone
def to_arpa
IPAddr.new(ip).ip6_arpa
end
end
end
end
(5-5/6)