# dns::get-host-name

[This is preliminary documentation and subject to change.]

Gets the host name of the local computer.

### Usage

`string dns::get-host-name()`

### Return Value

A string that contains the DNS host name of the local computer.

### Exceptions

The function will fail in any of the following circumstances:

- An error is encountered when resolving the local host name.

### Requirements

Assembly: NAnt.Core (0.91.3881.0)