Freigeben über


DNS_DNSKEY_DATA structure

The DNS_DNSKEY_DATA structure represents a DNSKEY resource record as specified in section 2 of RFC 4034.

Syntax

typedef struct _DNS_DNSKEY_DATA {
  WORD wFlags;
  BYTE chProtocol;
  BYTE chAlgorithm;
  WORD wKeyLength;
  WORD wPad;
  BYTE Key[1];
} DNS_DNSKEY_DATA, *PDNS_DNSKEY_DATA;

Members

  • wFlags
    A set of flags that specify key properties as described in section 2.1.1 of RFC 4034.

  • chProtocol
    A value that specifies the protocol with which Key can be used. The possible values are shown in the following table.

    Value Meaning
    3

    Domain Name System Security Extensions (DNSSEC)

     

  • chAlgorithm
    A value that specifies the algorithm to use with Key. The possible values are shown in the following table.

    Value Meaning
    1

    RSA/MD5 (RFC 2537)

    2

    Diffie-Hellman (RFC 2539)

    3

    DSA (RFC 2536)

    4

    Elliptic curve cryptography

    5

    RSA/SHA-1 (RFC 3110)

     

  • wKeyLength
    The length, in bytes, of Key. This value is determined by the algorithm type in chAlgorithm.

  • wPad
    Reserved. Do not use.

  • Key
    A BYTE array that contains the public key for the algorithm specified in chAlgorithm. Its length is determined by wKeyLength.

Remarks

The DNS_DNSKEY_DATA structure is used in conjunction with the DNS_RECORD structure to programmatically manage DNS entries.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Windns.h

See also

DNS Structures

DNS_RECORD