DNS_SERVER_PROPERTY structure (netioapi.h)
Describes a DNS server property, which is set in the DNS_INTERFACE_SETTINGS3 structure, and configured through the SetInterfaceDnsSettings function.
Syntax
typedef struct _DNS_SERVER_PROPERTY {
ULONG Version;
ULONG ServerIndex;
DNS_SERVER_PROPERTY_TYPE Type;
#if ...
DNS_SERVER_PROPERTY_TYPES Property;
#else
DNS_SERVER_PROPERTY_TYPES Property;
#endif
} DNS_SERVER_PROPERTY;
Members
Version
Type: ULONG
Must be set to DNS_INTERFACE_SETTINGS_VERSION1.
ServerIndex
Type: ULONG
Must be the index of the corresponding server present in the DNS_INTERFACE_SETTINGS3::NameServer or ::ProfileNameServer member. For proper usage, see the ServerProperties and ProfileServerProperties members in the topic for the DNS_INTERFACE_SETTINGS3 structure.
Type
Type: DNS_SERVER_PROPERTY_TYPE
Must be set to DnsServerDohProperty. Describes a DNS-over-HTTPS server property.
Property
Type: DNS_SERVER_PROPERTY_TYPES
If the Type member is set to DnsServerDohProperty, then the DNS_SERVER_PROPERTY_TYPES::DohSettings field must point to a valid DNS_DOH_SERVER_SETTINGS object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | netioapi.h (include Iphlpapi.h) |