Beispiel #1
0
        public MX_RR(byte[] data, int offset, int len)
        {
            Preference = data[offset++] * 256 + data[offset++];
            int labelLen;

            Mail = MyDns.GetLabelName(data, offset, out labelLen);
        }
Beispiel #2
0
        public SOA_RR(byte[] data, int offset, int len)
        {
            int endOffset = offset + len;
            int labelLen;

            NameServer = MyDns.GetLabelName(data, offset, out labelLen);
            offset    += labelLen;
            Mail       = MyDns.GetLabelName(data, ++offset, out labelLen);
            offset    += labelLen;
            offset++;
            Serial  = data[offset++] * 256 * 256 * 256 + data[offset++] * 256 * 256 + data[offset++] * 256 + data[offset++];
            Refresh = data[offset++] * 256 * 256 * 256 + data[offset++] * 256 * 256 + data[offset++] * 256 + data[offset++];
            Retry   = data[offset++] * 256 * 256 * 256 + data[offset++] * 256 * 256 + data[offset++] * 256 + data[offset++];
            Expire  = data[offset++] * 256 * 256 * 256 + data[offset++] * 256 * 256 + data[offset++] * 256 + data[offset++];
            TTL     = data[offset++] * 256 * 256 * 256 + data[offset++] * 256 * 256 + data[offset++] * 256 + data[offset++];
        }
Beispiel #3
0
        public NS_RR(byte[] data, int offset, int len)
        {
            int labelLen;

            NameServer += MyDns.GetLabelName(data, offset, out labelLen);
        }
        public CNAME_RR(byte[] data, int offset, int len)
        {
            int labelLen;

            name += MyDns.GetLabelName(data, offset, out labelLen);
        }