Table of Contents

Class DnsQuestion

Namespace
AppleTvControlLibrary.Discovery.Dns
Assembly
AppleTvControlLibrary.Discovery.dll

Represents a DNS query.

public sealed class DnsQuestion
Inheritance
DnsQuestion
Inherited Members

Remarks

Initializes a new instance of the DnsQuestion class.

Constructors

DnsQuestion(string, QueryType, ushort)

Represents a DNS query.

public DnsQuestion(string qname, QueryType qtype, ushort qclass)

Parameters

qname string
qtype QueryType
qclass ushort

Remarks

Initializes a new instance of the DnsQuestion class.

Properties

QClass

Gets the query class.

public ushort QClass { get; }

Property Value

ushort

QName

Gets the query name.

public string QName { get; }

Property Value

string

QType

Gets the query type.

public QueryType QType { get; }

Property Value

QueryType

Methods

Pack()

Encodes the question data as needed for a DNS query or response.

public byte[] Pack()

Returns

byte[]

The packed question bytes.

UnpackRead(DnsBufferReader)

Creates a DnsQuestion from a data stream.

public static DnsQuestion UnpackRead(DnsBufferReader buffer)

Parameters

buffer DnsBufferReader

The buffer to read from.

Returns

DnsQuestion

The parsed question.