# otDnssdServiceInstanceInfo Struct Reference

# otDnssdServiceInstanceInfo


`#include <openthread/dnssd_server.h>`

Represents information of a discovered service instance for a DNS-SD query.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1aa4e8ed9add5d0f9848f38d77b2cf982d` | `uint8_t` Number of host IPv6 addresses. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1aa6ab1b919995e1c4d87ba59a6e988834` | `const https://openthread.io/reference/struct/ot-ip6-address *` Host IPv6 addresses. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1a35f0720ce6f0a6b20fc74b4803c5f239` | `const char *` Full instance name (e.g. "OpenThread._ipps._tcp.default.service.arpa."). |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1a2135361f4e2b69df781264341eb63016` | `const char *` Host name (e.g. "ot-host.default.service.arpa."). |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1ab894b4b0b65ba33a59b86607f84fcad8` | `uint16_t` Service port. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1addb5d621f90b29ff668a92d0d6f769f4` | `uint16_t` Service priority. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1a89f96105d048184e34c6b92c20afb45e` | `uint32_t` Service TTL (in seconds). |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1a607b463dfd630a482b49f5a852b863fc` | `const uint8_t *` Service TXT RDATA. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1ad1597f7485eac120ee08ea3f556a9bd8` | `uint16_t` Service TXT RDATA length. |
| `https://openthread.io/reference/struct/ot-dnssd-service-instance-info#structot_dnssd_service_instance_info_1a1a96c18aad5cb38685803f6844022d2d` | `uint16_t` Service weight. |

## Public attributes

### mAddressNum

```
uint8_t otDnssdServiceInstanceInfo::mAddressNum
```
Number of host IPv6 addresses.

### mAddresses

```
const otIp6Address * otDnssdServiceInstanceInfo::mAddresses
```
Host IPv6 addresses.

### mFullName

```
const char * otDnssdServiceInstanceInfo::mFullName
```
Full instance name (e.g. "OpenThread._ipps._tcp.default.service.arpa.").

### mHostName

```
const char * otDnssdServiceInstanceInfo::mHostName
```
Host name (e.g. "ot-host.default.service.arpa.").

### mPort

```
uint16_t otDnssdServiceInstanceInfo::mPort
```
Service port.

### mPriority

```
uint16_t otDnssdServiceInstanceInfo::mPriority
```
Service priority.

### mTtl

```
uint32_t otDnssdServiceInstanceInfo::mTtl
```
Service TTL (in seconds).

### mTxtData

```
const uint8_t * otDnssdServiceInstanceInfo::mTxtData
```
Service TXT RDATA.

### mTxtLength

```
uint16_t otDnssdServiceInstanceInfo::mTxtLength
```
Service TXT RDATA length.

### mWeight

```
uint16_t otDnssdServiceInstanceInfo::mWeight
```
Service weight.

## 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).