# otPlatDnssdSrvResult Struct Reference

# otPlatDnssdSrvResult


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

Represents an SRV resolver result.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1ac2794f6449efdb4e6e6079c3b45d6201` | `const char *` The host name (e.g., "myhost"). Can be NULL when `mTtl` is zero. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1a57fede43a274c0a59363553e478ec3ad` | `uint32_t` The infrastructure network interface index. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1a82d0c4236098f47ce7fb7a461754a811` | `uint16_t` The service port number. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1ae5e4057c809c9248a11b6eb4d8c9d722` | `uint16_t` The service priority. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1afea9ca4f7587e5bf50e1473572fe2890` | `const char *` The service instance name label. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1af6a4243a71ce183f93483a2912dcf5e6` | `const char *` The service type. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1ad80cefafa1210289df857edce9abbc1a` | `uint32_t` The service TTL in seconds. Zero TTL indicates SRV record is removed. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-srv-result#structot_plat_dnssd_srv_result_1a78ae7a8afd7f06ae013bd9a201d42b0f` | `uint16_t` The service weight. |

## Public attributes

### mHostName

```
const char * otPlatDnssdSrvResult::mHostName
```
The host name (e.g., "myhost"). Can be NULL when `mTtl` is zero.

### mInfraIfIndex

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

### mPort

```
uint16_t otPlatDnssdSrvResult::mPort
```
The service port number.

### mPriority

```
uint16_t otPlatDnssdSrvResult::mPriority
```
The service priority.

### mServiceInstance

```
const char * otPlatDnssdSrvResult::mServiceInstance
```
The service instance name label.

### mServiceType

```
const char * otPlatDnssdSrvResult::mServiceType
```
The service type.

### mTtl

```
uint32_t otPlatDnssdSrvResult::mTtl
```
The service TTL in seconds. Zero TTL indicates SRV record is removed.

### mWeight

```
uint16_t otPlatDnssdSrvResult::mWeight
```
The 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).