-
Notifications
You must be signed in to change notification settings - Fork 1
JDWX DNSQuery Question
This class handles parsing and constructing the question section of DNS packets.
This is referred to as the "zone" for update per RFC2136
DNS question format - RFC1035 section 4.1.2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | qType | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | qClass | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
- Class name: Question
- Namespace: \JDWX\DNSQuery
public qName
- Visibility: public
public qType
- Visibility: public
public qClass
- Visibility: public
mixed JDWX\DNSQuery\Question::__construct(?\JDWX\DNSQuery\Packet\Packet i_packet)
Constructor - builds a new Question object
- Visibility: public
- i_packet ?\JDWX\DNSQuery\Packet\Packet - either a Packet object, or null to build an empty object
string JDWX\DNSQuery\Question::__toString()
magic __toString() function to return the Question object as a string
- Visibility: public
void JDWX\DNSQuery\Question::set(\JDWX\DNSQuery\Packet\Packet i_packet)
Populate this Question object from a Packet object
- Visibility: public
- i_packet JDWX\DNSQuery\Packet\Packet - Packet object
string JDWX\DNSQuery\Question::get(\JDWX\DNSQuery\Packet\Packet i_packet)
returns a binary packed Question object
- Visibility: public
- i_packet JDWX\DNSQuery\Packet\Packet - Packet object this question is part of. This needs to be passed in so that the compressed qname value can be packed in with the names of the other parts of the packet.