Jump to main content

##

# TCPIP_DNS_GetIPAddressesNumber Function

## C

    int TCPIP_DNS_GetIPAddressesNumber(
        const char* hostName,
        IP_ADDRESS_TYPE type
    );

## Description

This function returns the total count of IPv4 and/or IPv6 addresses that exist for a resolved host name.

## Preconditions

TCPIP_DNS_Resolve() has been called.

## Parameters

Parameters | Description
--- | ---
hostName | A pointer to the null terminated string specifying the host name.
type | IP_ADDRESS_TYPE_IPV4/IP_ADDRESS_TYPE_IPV6/IP_ADDRESS_TYPE_ANY.

## Returns

None.

## Remarks

None.