4.17 Setting Response Rate Limiting with Enabled Mode
The following example describes how to set Response Rate Limiting with default values for parameters and enabled mode.
The client calls R_DnssrvOperation (section 3.1.4.1) and provides the following parameters:
A Unicode string containing the FQDN of the DNS server on which the Response Rate Limiting is to be configured.
NULL as the value of pszZone.
Zero as the context.
SetRRL as the operation.
DNSSRV_TYPEID_RRL as the type ID.
Create a DNS_RPC_RRL_PARAMS structure (section 2.2.16.2.1) with eMode as "DnsRRLEnabled", an enum value containing the value of the RRL settings to be created. Set the dwFlags field for the mode property of the DNS_RPC_RRL_PARAMS to be updated, as defined in section 2.2.16.1.1.
Pass this RPC data structure as pData.
The DNS server returns ERROR_SUCCESS if the operation is successful or a Windows error code if the operation fails.