Show / Hide Table of Contents

Class Question

A question about a domain name to resolve.

Inheritance
Object
DnsObject
Question
Implements
IWireSerialiser
ICloneable
Inherited Members
DnsObject.CreationTime
DnsObject.Length()
DnsObject.Clone()
DnsObject.Clone<T>()
DnsObject.Read(Byte[])
DnsObject.Read(Byte[], Int32, Int32)
DnsObject.Read(Stream)
DnsObject.ToByteArray()
DnsObject.Write(Stream)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class Question : DnsObject, IWireSerialiser, ICloneable

Properties

| Improve this Doc View Source

Class

A two octet code that specifies the class of the query.

Declaration
public DnsClass Class { get; set; }
Property Value
Type Description
DnsClass

Defaults to IN.

| Improve this Doc View Source

Name

A domain name to query.

Declaration
public DomainName Name { get; set; }
Property Value
Type Description
DomainName
| Improve this Doc View Source

Type

A two octet code which specifies the type of the query.

Declaration
public DnsType Type { get; set; }
Property Value
Type Description
DnsType

One of the DnsType values.

Remarks

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 the resource record.

Methods

| Improve this Doc View Source

Read(WireReader)

Reads the DNS object that is encoded in the wire format.

Declaration
public override IWireSerialiser Read(WireReader reader)
Parameters
Type Name Description
WireReader reader

The source of the DNS object.

Returns
Type Description
IWireSerialiser

The final DNS object.

Overrides
DnsObject.Read(WireReader)
Remarks

Reading a ResourceRecord will return a new instance that is type specific unless the GetDataLength() is zero.

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
| Improve this Doc View Source

Write(WireWriter)

Writes the DNS object encoded in the wire format.

Declaration
public override void Write(WireWriter writer)
Parameters
Type Name Description
WireWriter writer

The destination of the DNS object.

Overrides
DnsObject.Write(WireWriter)

Implements

IWireSerialiser
System.ICloneable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX