Class Question
A question about a domain name to resolve.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class Question : DnsObject, IWireSerialiser, ICloneable
Properties
| Improve this Doc View SourceClass
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. |
Name
A domain name to query.
Declaration
public DomainName Name { get; set; }
Property Value
Type | Description |
---|---|
DomainName |
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 SourceRead(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
Remarks
Reading a ResourceRecord will return a new instance that is type specific unless the GetDataLength() is zero.
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWrite(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. |