# otDnsTxtEntryIterator Struct Reference

# otDnsTxtEntryIterator


`#include <openthread/dns.h>`

Represents an iterator for TXT record entries (key/value pairs).

## Summary

The data fields in this structure are intended for use by OpenThread core and caller should not read or change them.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-dns-txt-entry-iterator#structot_dns_txt_entry_iterator_1ada6a2a7e9730c5a603fafaf15906edea[64+1]` | `char` |
| `https://openthread.io/reference/struct/ot-dns-txt-entry-iterator#structot_dns_txt_entry_iterator_1aeacabdfd75f7376d2a5313414dfe7e95[2]` | `uint16_t` |
| `https://openthread.io/reference/struct/ot-dns-txt-entry-iterator#structot_dns_txt_entry_iterator_1a6b8a9105e62e482ed75e3293c7c9596e` | `const void *` |

## Public attributes

### mChar

```
char otDnsTxtEntryIterator::mChar[64+1]
```

### mData

```
uint16_t otDnsTxtEntryIterator::mData[2]
```

### mPtr

```
const void * otDnsTxtEntryIterator::mPtr
```

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