Beispiel #1
0
            internal void Deserialize(ref DnsBufferReader reader)
            {
                this.Name = reader.ReadDomainName();
                this.Type = (DnsStandard.RecordType)reader.ReadShort();

                this.Class            = (DnsStandard.Class)reader.ReadShort();
                this.TTL              = reader.ReadInt();
                this.RecordDataLength = reader.ReadShort();
            }
Beispiel #2
0
 /// <summary>
 /// Initializes an instance for the specified domain and type
 /// </summary>
 /// <param name="domain">The domain we are querying.</param>
 /// <param name="type">The record type we are querying.</param>
 /// <param name="qClass">Use to define a non Internet DNS query</param>
 public DnsQuestion(string domain, DnsStandard.RecordType type, DnsStandard.Class qClass)
 {
     this.Domain = domain;
     this.Type   = type;
     this.Class  = qClass;
 }
Beispiel #3
0
 internal void Deserialize(ref DnsBufferReader reader)
 {
     this.Domain = reader.ReadDomainName();
     this.Type   = (DnsStandard.RecordType)reader.ReadShort();
     this.Class  = (DnsStandard.Class)reader.ReadShort();
 }
Beispiel #4
0
            internal void Deserialize(ref DnsBufferReader reader)
            {
                this.Name = reader.ReadDomainName();
                this.Type = (DnsStandard.RecordType) reader.ReadShort();

                this.Class = (DnsStandard.Class) reader.ReadShort();
                this.TTL = reader.ReadInt();
                this.RecordDataLength = reader.ReadShort();
            }
Beispiel #5
0
 internal void Deserialize(ref DnsBufferReader reader)
 {
     this.Domain = reader.ReadDomainName();
     this.Type = (DnsStandard.RecordType) reader.ReadShort();
     this.Class = (DnsStandard.Class) reader.ReadShort();
 }