C# Class BaxterWorks.DNS.Parsers.Query

Show file Open project: voltagex/junkcode

Public Methods

Method Description
ParseQueryHeader ( byte buffer ) : QueryHeader
ParseQuestionSection ( byte buffer ) : QuestionSection

QNAME a 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 a 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. QCLASS a two octet code that specifies the class of the query. For example, the QCLASS field is IN for the Internet.

Method Details

ParseQueryHeader() public static method

public static ParseQueryHeader ( byte buffer ) : QueryHeader
buffer byte
return BaxterWorks.DNS.Types.QueryHeader

ParseQuestionSection() public static method

QNAME a 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 a 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. QCLASS a two octet code that specifies the class of the query. For example, the QCLASS field is IN for the Internet.
public static ParseQuestionSection ( byte buffer ) : QuestionSection
buffer byte
return BaxterWorks.DNS.Types.QuestionSection