## Dns::GetHostAddresses method


Returns a collection of IP addresses of the specified host name or IP address.

```cpp
static System::ArrayPtr<System::SharedPtr<IPAddress>> System::Net::Dns::GetHostAddresses(String hostNameOrAddress)
```


| Parameter | Type | Description |
| --- | --- | --- |
| hostNameOrAddress | String | The string that contains a hostname or IP address. |

### ReturnValue

A collection of IP addresses.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPAddress](../../ipaddress/)
* Class [String](../../../system/string/)
* Class [Dns](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
