# DNS Stateful Operations

# DNS Stateful Operations

This module includes configuration variables for DNS Stateful Operations.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-dns-dso#group__config-dns-dso_1ga8407ae79acd9fecf8d0ee873b29880dd (45 * 1000)` | Specifies the maximum time (in msec) waiting for a connection to be established by DSO platform layer. |
| `https://openthread.io/reference/config/group/config-dns-dso#group__config-dns-dso_1ga42362c76288b0d797ca47d681ab244c2 0` | Define to 1 to enable DSO support. |
| `https://openthread.io/reference/config/group/config-dns-dso#group__config-dns-dso_1ga226d64b689645abb01bb9e708e426f13 3` | Specifies the maximum number of pending requests per DSO session. |
| `https://openthread.io/reference/config/group/config-dns-dso#group__config-dns-dso_1ga934259987b351bd4845a32ec686f1306 0` | Define to 1 to add mock (empty) implementation of DSO platform APIs. |
| `https://openthread.io/reference/config/group/config-dns-dso#group__config-dns-dso_1ga14abfe3e5704cb79abd05af26e241403 (30 * 1000)` | Specifies the maximum time (in msec) waiting for a response to a request. |

## Macros

### OPENTHREAD_CONFIG_DNS_DSO_CONNECTING_TIMEOUT

```
 OPENTHREAD_CONFIG_DNS_DSO_CONNECTING_TIMEOUT (45 * 1000)
```
Specifies the maximum time (in msec) waiting for a connection to be established by DSO platform layer.

### OPENTHREAD_CONFIG_DNS_DSO_ENABLE

```
 OPENTHREAD_CONFIG_DNS_DSO_ENABLE 0
```
Define to 1 to enable DSO support.

### OPENTHREAD_CONFIG_DNS_DSO_MAX_PENDING_REQUESTS

```
 OPENTHREAD_CONFIG_DNS_DSO_MAX_PENDING_REQUESTS 3
```
Specifies the maximum number of pending requests per DSO session.

### OPENTHREAD_CONFIG_DNS_DSO_MOCK_PLAT_APIS_ENABLE

```
 OPENTHREAD_CONFIG_DNS_DSO_MOCK_PLAT_APIS_ENABLE 0
```
Define to 1 to add mock (empty) implementation of DSO platform APIs.

This is intended for generating code size report only and should not be used otherwise.

### OPENTHREAD_CONFIG_DNS_DSO_RESPONSE_TIMEOUT

```
 OPENTHREAD_CONFIG_DNS_DSO_RESPONSE_TIMEOUT (30 * 1000)
```
Specifies the maximum time (in msec) waiting for a response to a request.

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