Struct Question

struct Question ;

Fields

NameTypeDescription
qclass QCLASSA two octet code that specifies the class of the query. For example, the QCLASS field is IN for the Internet.
qname DomainA domain name represented as a sequence of labels, where each label consists of a length octet followed by that number of octets. The domain name terminates with the zero length octet for the null label of the root. Note that this field may be an odd number of octets; no padding is used.
qtype QTYPEA two octet code which specifies the type of the query. The values for this field include all codes valid for a TYPE field, together with some more general codes which can match more than one type of RR.

Methods

NameDescription
fromBinary (ctx) Support for network serialization Note that this method is not called directly by the deserializer, as it needs to support arbitrary pointers into the message

https

//datatracker.ietf.org/doc/html/rfc1035#section-4.1.2