# otHistoryTrackerDnsSrpAddrInfo Struct Reference

# otHistoryTrackerDnsSrpAddrInfo


`#include <openthread/history_tracker.h>`

Represents DNS/SRP server address information parsed from a Network Data service entry.

## Summary

The `mType` field specifies the entry type. Some fields are only applicable to specific types.

- The `mPort` field is only applicable for `OT_HISTORY_TRACKER_DNS_SRP_ADDR_TYPE_UNICAST_*` types.
- The `mSequenceNumber` field is only applicable for the `OT_HISTORY_TRACKER_DNS_SRP_ADDR_TYPE_ANYCAST` type.
- Other fields are common and used for all address types.

<br />

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1ad4355cfb9b74e092460334979e6b8e1d` | `https://openthread.io/reference/struct/ot-ip6-address` The server address. |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1ac9578e176975f85c30d8b496940cc077` | `https://openthread.io/reference/group/api-history-tracker#group__api-history-tracker_1gaca44bda447472cf67a5ee42466b27e3b` Indicates the event (added/removed). |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1a03f8c4f5a86205d0deef532c563a2f20` | `uint16_t` Port number. |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1ae84c479edae44926c5ccc4498fe249b7` | `uint16_t` The RLOC16 of the Border Router adding/removing the entry. |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1ae7f690928708f91f82d10f83b04429db` | `uint8_t` Anycast sequence number. |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1a9049cbf986846d7731aa1d40ac9e5da6` | `https://openthread.io/reference/group/api-history-tracker#group__api-history-tracker_1gafb47bf0b11f8ab63b306331481d78d11` Address type. |
| `https://openthread.io/reference/struct/ot-history-tracker-dns-srp-addr-info#structot_history_tracker_dns_srp_addr_info_1a6ae548b9c326f97454437981e7320fb9` | `uint8_t` Version number. |

## Public attributes

### mAddress

```
otIp6Address otHistoryTrackerDnsSrpAddrInfo::mAddress
```
The server address.

### mEvent

```
otHistoryTrackerNetDataEvent otHistoryTrackerDnsSrpAddrInfo::mEvent
```
Indicates the event (added/removed).

### mPort

```
uint16_t otHistoryTrackerDnsSrpAddrInfo::mPort
```
Port number.

### mRloc16

```
uint16_t otHistoryTrackerDnsSrpAddrInfo::mRloc16
```
The RLOC16 of the Border Router adding/removing the entry.

### mSequenceNumber

```
uint8_t otHistoryTrackerDnsSrpAddrInfo::mSequenceNumber
```
Anycast sequence number.

### mType

```
otHistoryTrackerDnsSrpAddrType otHistoryTrackerDnsSrpAddrInfo::mType
```
Address type.

### mVersion

```
uint8_t otHistoryTrackerDnsSrpAddrInfo::mVersion
```
Version number.

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