Class Dnsruby::Question
In: lib/Dnsruby/message.rb
Parent: Object

A Dnsruby::Question object represents a record in the question section of a DNS packet.

RFC 1035 Section 4.1.2

Methods

new   qclass=   qname=   qtype=   to_s  

External Aliases

qname -> zname
  For Updates, the qname field is redefined to zname (RFC2136, section 2.3)
qtype -> ztype
  For Updates, the qtype field is redefined to ztype (RFC2136, section 2.3)
qclass -> zclass
  For Updates, the qclass field is redefined to zclass (RFC2136, section 2.3)
qtype -> type

Attributes

qclass  [R]  The Question class
qname  [R]  The Question name
qtype  [R]  The Question type

Public Class methods

Creates a question object from the domain, type, and class passed as arguments.

If a String is passed in, a Name, IPv4 or IPv6 object is created.

If an IPv4 or IPv6 object is used then the type is set to PTR.

Public Instance methods

Returns a string representation of the question record.

[Validate]