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

The header portion of a DNS packet

RFC 1035 Section 4.1.1

Methods

Constants

MAX_ID = 65535

External Aliases

qdcount -> zocount
qdcount= -> zocount=
ancount -> prcount
ancount= -> prcount=
nscount -> upcount
nscount= -> upcount=
arcount -> adcount
arcount= -> adcount=

Attributes

aa  [RW]  Authoritative answer flag
ad  [RW]  The Authenticated Data flag Relevant in DNSSEC context. (The AD bit is only set on answers where signatures have been cryptographically verified or the server is authoritative for the data and is allowed to set the bit by policy.)
ancount  [RW]  The number of records in the answer section of the message
arcount  [RW]  The number of records in the additional record section og the message
cd  [RW]  The Checking Disabled flag
id  [RW]  The header ID
nscount  [RW]  The number of records in the authoriy section of the message
opcode  [R]  The header opcode
qdcount  [RW]  The number of records in the question section of the message
qr  [RW]  The query response flag
qr  [RW]  The query response flag
ra  [RW]  Recursion available flag
rd  [RW]  Recursion Desired flag
tc  [RW]  Truncated flag

Public Class methods

Public Instance methods

This new get_header_rcode method is intended for use only by the Message class. This is because the Message OPT section may contain an extended rcode (see RFC 2671 section 4.6). Using the header rcode only ignores this extension, and is not recommended.

[Validate]