2.3.2.2 dnsRecord

The dnsRecord attribute is used to store DNS resource record definitions. This attribute MUST be formatted as follows:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

DataLength

Type

Version

Rank

Flags

Serial

TtlSeconds

Reserved

TimeStamp

Data (variable)

...

DataLength (2 bytes): An unsigned binary integer containing the length, in bytes, of the Data field.

Type (2 bytes): The resource record's type. See DNS_RECORD_TYPE (section 2.2.2.1.1).

Version (1 byte): The version number associated with the resource record attribute. The value MUST be 0x05.

Rank (1 byte): The least-significant byte of one of the RANK* flag values. See dwFlags (section 2.2.2.2.5).

Flags (2 bytes): Not used. The value MUST be 0x0000.

Serial (4 bytes): The serial number of the SOA record of the zone containing this resource record. See DNS_RPC_RECORD_SOA (section 2.2.2.2.4.3).

TtlSeconds (4 bytes): See dwTtlSeconds (section 2.2.2.2.5). This field uses big-endian byte order.

Reserved (4 bytes): This field is reserved for future use. The value MUST be 0x00000000.

TimeStamp (4 bytes): See dwTimeStamp (section 2.2.2.2.5).

Data (variable): The resource record's data. See DNS_RPC_RECORD_DATA (section 2.2.2.2.4).