4.16 Enumerating Client Subnet Records

The following example describes how to enumerate all the client subnet records on the DNS server.

The client calls R_DnssrvComplexOperation (section 3.1.4.3) and provides the following parameters:

  • A Unicode string containing the FQDN of the DNS server on which the client subnet records are to be enumerated.

  • NULL as the value of pszZone.

  • EnumerateClientSubnetRecord as the operation.

  • DNSSRV_TYPEID_NULL as the type ID.

  • NULL as the value of pDataIn.

The DNS server returns ERROR_SUCCESS if the operation is successful or a Windows error code if the operation fails. If the operation is successful, pdwTypeOut will be of type DNSSRV_TYPEID_UNICODE_STRING_LIST, and ppDataOut will point to a structure of type PDNS_RPC_UNICODE_STRING_LIST.