NPKIGetServerDNSName

Retrieves the DNS name for a server (formerly NWPKIGetServerDNSName).

Syntax

    #include "npki.h"
    
    NWRCODE NPKIGetServerDNSName(
       const NPKIContext       context,
       nuint32                 index,
       unicode const          **DNSName);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
index
(IN) Specifies which DNS Name is to be returned. This DNS name is associated with the IP address returned by the previous successful call to NPKIGetServerIPAddress. index is 0 based.
DNSName
(OUT) Returns the specified DNS name.

Return Values

Returns 0 if successful, or PKI error code if not successful.

Remarks

NPKIGetServerDNSName can only be used after a successful call to NPKIGetServerIPAndDNSInfo, followed by a successful call to NPKIGetServerIPAddress.

See Also

NPKIGetServerDNSName, NPKIGetServerIPAddress