public void WriteTo(Stream s, List <DnsDomainOffset> domainEntries)
        {
            DnsDatagram.SerializeDomainName(_name, s, domainEntries);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_type, s);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_class, s);
            DnsDatagram.WriteUInt32NetworkOrder(TtlValue, s);

            _data.WriteTo(s, domainEntries);
        }
        public void WriteTo(Stream s, List <DnsDomainOffset> domainEntries)
        {
            DnsDatagram.ConvertDomainToLabel(_name, s, domainEntries);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_type, s);
            DnsDatagram.WriteUInt16NetworkOrder((ushort)_class, s);
            DnsDatagram.WriteUInt32NetworkOrder(TTLValue, s);

            _data.WriteTo(s, domainEntries);
        }
Example #3
0
 protected override void WriteRecordData(Stream s, List <DnsDomainOffset> domainEntries)
 {
     DnsDatagram.SerializeDomainName(_masterNameServer, s, domainEntries);
     DnsDatagram.SerializeDomainName(_responsiblePerson, s, domainEntries);
     DnsDatagram.WriteUInt32NetworkOrder(_serial, s);
     DnsDatagram.WriteUInt32NetworkOrder(_refresh, s);
     DnsDatagram.WriteUInt32NetworkOrder(_retry, s);
     DnsDatagram.WriteUInt32NetworkOrder(_expire, s);
     DnsDatagram.WriteUInt32NetworkOrder(_minimum, s);
 }