Edit

Share via


DNS_SVCB_DATA structure (windnsdef.h)

The DNS_SVCB_DATA structure represents a DNS SVCB ("Service Binding") record, as specified in RFC 9460.

Syntax

typedef struct _DNS_SVCB_DATA {
  WORD           wSvcPriority;
  PSTR           pszTargetName;
  WORD           cSvcParams;
  DNS_SVCB_PARAM *pSvcParams;
} DNS_SVCB_DATA;

Members

wSvcPriority

Type: WORD

Record priority. A lower value indicates higher priority; 0 indicates Alias Mode, as described in section 2.4.2 of RFC 9460.

pszTargetName

Type: PSTR

A pointer to a null-terminated string representing the domain name of the target or alternative endpoint.

cSvcParams

Type: WORD

Count of svcb parameters.

pSvcParams

Type: DNS_SVCB_PARAM*

List of SVCB parameters representing the services available at pszTargetName.

Remarks

When calling DnsQueryEx (or any of the DNS query APIs) for DNS_TYPE_SVCB or DNS_TYPE_HTTPS DNS record types, if you want to get back results in a parsed format—that is, in the form of a DNS_SVCB_DATA structure instead of a 'flat' (just a data buffer) format—then you must set DNS_QUERY_PARSE_ALL_RECORDS (in DNS_QUERY_REQUEST3::QueryOptions).

Requirements

Requirement Value
Header windnsdef.h