Parent

Class Index [+]

Quicksearch

Dnsruby::RR::IN::A

Class for DNS Address (A) resource records.

RFC 1035 Section 3.4.1

Attributes

address[RW]

The RR’s (Resolv::IPv4) address field

Public Instance Methods

from_hash(hash) click to toggle source

Create the RR from a hash

    # File lib/Dnsruby/resource/A.rb, line 33
33:         def from_hash(hash)
34:           @address = IPv4.create(hash[:address])
35:         end
from_string(input) click to toggle source

Create the RR from a standard string

    # File lib/Dnsruby/resource/A.rb, line 38
38:         def from_string(input)
39:           @address = IPv4.create(input)
40:         end
rdata_to_string() click to toggle source
    # File lib/Dnsruby/resource/A.rb, line 42
42:         def rdata_to_string
43:           return @address.to_s
44:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.