lib/net/dns/rr/ptr.rb in net-dns-0.6.0 vs lib/net/dns/rr/ptr.rb in net-dns-0.6.1
- old
+ new
@@ -1,12 +1,18 @@
module Net
module DNS
class RR
- #------------------------------------------------------------
- # RR type PTR
- #------------------------------------------------------------
+ #
+ # = Pointer Record (PTR)
+ #
+ # Class for DNS Pointer (PTR) resource records.
+ #
+ # Pointer records are the opposite of A and AAAA RRs
+ # and are used in Reverse Map zone files to map
+ # an IP address (IPv4 or IPv6) to a host name.
+ #
class PTR < RR
# Getter for PTR resource
def ptr
@ptrdname.to_s
@@ -51,15 +57,14 @@
return offset
end
private
- def set_type
- @type = Net::DNS::RR::Types.new("PRT")
- end
+ def set_type
+ @type = Net::DNS::RR::Types.new("PTR")
+ end
end # class PTR
end # class RR
end # module DNS
end # module Net
-