Parent

Methods

Net::DNS::RR::HINFO

System Information Record (HINFO)

Class for DNS HINFO resource records.

Allows definition of the Hardware type and Operating System (OS) in use at a host. For security reasons these records are rarely used on public servers. If a space exists in the field it must be enclosed in quotes. Single space between CPU and OS parameters.

Public Instance Methods

cpu() click to toggle source

Gets the CPU value.

Returns a String.

# File lib/net/dns/rr/hinfo.rb, line 20
def cpu
  @cpu
end
os() click to toggle source

Gets the OS value.

Returns a String.

# File lib/net/dns/rr/hinfo.rb, line 27
def os
  @os
end
to_a() click to toggle source

Gets a list of all the attributes for this record.

Returns an Array of values.

# File lib/net/dns/rr/hinfo.rb, line 43
def to_a
  [nil, nil, cls.to_s, type.to_s, value]
end
value() click to toggle source

Gets the standardized value for this record, represented by the value of cpu and os.

Returns a String.

# File lib/net/dns/rr/hinfo.rb, line 35
def value
  %{"#{cpu}" "#{os}"}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.