# otPlatDnssdRecordResult Struct Reference

# otPlatDnssdRecordResult


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

Represents a record query result.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a4aadf86b48273fac55ff3741e9920702` | `const char *` The first label of the name to be queried. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a85a9387e999722390166bd75235299a4` | `uint32_t` The infrastructure network interface index. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a3b9bcf43e66360b56fee3d4ca138baa5` | `const char *` The rest of the name labels. Does not include domain name. Can be NULL. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a35a8ad4ead37aa68d38409b58c64ceea` | `const uint8_t *` The record data bytes. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a49349fb40563e087b0b52932763e051a` | `uint16_t` Number of bytes in record data. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1aa03dc927f87036211039c5ee7edb820f` | `uint16_t` The record type. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-record-result#structot_plat_dnssd_record_result_1a30061658cd68cf42ae3e04ec53d3a233` | `uint32_t` TTL in seconds. Zero TTL indicates removal the data. |

## Public attributes

### mFirstLabel

```
const char * otPlatDnssdRecordResult::mFirstLabel
```
The first label of the name to be queried.

### mInfraIfIndex

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

### mNextLabels

```
const char * otPlatDnssdRecordResult::mNextLabels
```
The rest of the name labels. Does not include domain name. Can be NULL.

### mRecordData

```
const uint8_t * otPlatDnssdRecordResult::mRecordData
```
The record data bytes.

### mRecordDataLength

```
uint16_t otPlatDnssdRecordResult::mRecordDataLength
```
Number of bytes in record data.

### mRecordType

```
uint16_t otPlatDnssdRecordResult::mRecordType
```
The record type.

### mTtl

```
uint32_t otPlatDnssdRecordResult::mTtl
```
TTL in seconds. Zero TTL indicates removal the data.

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