## Dns::GetHostName method


Returns the host name of the local machine.

```cpp
static String System::Net::Dns::GetHostName()
```


### ReturnValue

The host name of the local machine.

## See Also

* Class [String](../../../system/string/)
* Class [Dns](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
