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

The DNS record name.

qtype QueryType

The DNS record type.

qclass ushort

The DNS record class.

Remarks

Initializes a new instance of the DnsQuestion class.

Properties

QClass

Gets the query class.

public ushort QClass { get; }

Property Value

ushort

The query class.

QName

Gets the query name.

public string QName { get; }

Property Value

string

The query name.

QType

Gets the query type.

public QueryType QType { get; }

Property Value

QueryType

The query type.

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.