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

The header portion of a DNS packet

RFC 1035 Section 4.1.1

Methods

==   data   decode   encode   getException   new   new_from_data   opcode=   opcode=   rcode=   rcode=   to_s  

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]  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
dnssec_ok  [RW]  The DO (dnssec OK) 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
rcode  [R]  Query response code
rd  [RW]  Recursion Desired flag
tc  [RW]  Truncated flag

Public Class methods

Public Instance methods

[Validate]