# otPlatDnssdHost Struct Reference

# otPlatDnssdHost


`#include <openthread/platform/dnssd.h>`

Represents a DNS-SD host.

## Summary

See `https://openthread.io/reference/group/plat-dns-sd#group__plat-dns-sd_1ga8ec148f41f14746b2e61a4b77d50236f`, `https://openthread.io/reference/group/plat-dns-sd#group__plat-dns-sd_1ga6f374039a6f5059870a8670392b5e843` for more details about fields in each case.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-dnssd-host#structot_plat_dnssd_host_1ad60d7b99ae4e47cc8d5ffe10c1a94b5f` | `const https://openthread.io/reference/struct/ot-ip6-address *` Array of IPv6 host addresses. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-host#structot_plat_dnssd_host_1a68d0157529d6263e7e1a6ee5456d8d39` | `uint16_t` Number of entries in `mAddresses` array. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-host#structot_plat_dnssd_host_1a8990758db0552347e5852e49bf48a127` | `const char *` The host name (does not include domain name). |
| `https://openthread.io/reference/struct/ot-plat-dnssd-host#structot_plat_dnssd_host_1a1902fd380acdb7c371278374ec1b62f2` | `uint32_t` The infrastructure network interface index. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-host#structot_plat_dnssd_host_1a16bb287e57f2bd113551b0569eb6e621` | `uint32_t` The host TTL in seconds. |

## Public attributes

### mAddresses

```
const otIp6Address * otPlatDnssdHost::mAddresses
```
Array of IPv6 host addresses.

### mAddressesLength

```
uint16_t otPlatDnssdHost::mAddressesLength
```
Number of entries in `mAddresses` array.

### mHostName

```
const char * otPlatDnssdHost::mHostName
```
The host name (does not include domain name).

### mInfraIfIndex

```
uint32_t otPlatDnssdHost::mInfraIfIndex
```
The infrastructure network interface index.

### mTtl

```
uint32_t otPlatDnssdHost::mTtl
```
The host TTL in seconds.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).