# otUpstreamDnsCounters Struct Reference

# otUpstreamDnsCounters


`#include <openthread/dnssd_server.h>`

Represents the count of queries, responses, failures handled by upstream DNS server.

## Summary

Requires `OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE`.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-upstream-dns-counters#structot_upstream_dns_counters_1a6f9eb006a6a213b16b3694c238fccacb` | `uint32_t` The number of upstream DNS failures. |
| `https://openthread.io/reference/struct/ot-upstream-dns-counters#structot_upstream_dns_counters_1a042e070ddf2396e85492e3d573094835` | `uint32_t` The number of queries forwarded. |
| `https://openthread.io/reference/struct/ot-upstream-dns-counters#structot_upstream_dns_counters_1a46d963a499f0ff858c8c38cad0f8dd6b` | `uint32_t` The number of responses forwarded. |

## Public attributes

### mFailures

```
uint32_t otUpstreamDnsCounters::mFailures
```
The number of upstream DNS failures.

### mQueries

```
uint32_t otUpstreamDnsCounters::mQueries
```
The number of queries forwarded.

### mResponses

```
uint32_t otUpstreamDnsCounters::mResponses
```
The number of responses forwarded.

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