# DNS-SD Server

# DNS-SD Server

This module includes configuration variables for the DNS-SD server.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gac434dbc5adbe786b697e4996b109c814 0` | Define to 1 to enable DNS-SD Discovery Proxy support. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gaa64014f052d76ca6cde8204c16c5b889 6000` | Specifies the default wait time that DNS-SD Server waits for a query response (e.g. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1ga9971a6e7c8b10ebf9a84c6ab8cf52132 0` | Define to 1 to bind DNS-SD server to unspecified interface, 0 to bind to Thread interface. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gab0969a87804a4519c2e67bd77d0cf51c 0` | Define to 1 to enable DNS-SD Server support. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gaba170f536413312437596657c187b68d 53` | Define the DNS-SD Server port. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gab745f6ae6c699939a73df665a142a292 0` | Define to 1 to enable upstream forwarding support. |
| `https://openthread.io/reference/config/group/config-dnssd-server#group__config-dnssd-server_1gabc6a6e3950a64c0632448976ed98aa91 0` | Define to 1 to add mock (empty) implementation of upstream query platform APIs. |

## Macros

### OPENTHREAD_CONFIG_DNSSD_DISCOVERY_PROXY_ENABLE

```
 OPENTHREAD_CONFIG_DNSSD_DISCOVERY_PROXY_ENABLE 0
```
Define to 1 to enable DNS-SD Discovery Proxy support.

### OPENTHREAD_CONFIG_DNSSD_QUERY_TIMEOUT

```
 OPENTHREAD_CONFIG_DNSSD_QUERY_TIMEOUT 6000
```
Specifies the default wait time that DNS-SD Server waits for a query response (e.g.

from Discovery Proxy).

### OPENTHREAD_CONFIG_DNSSD_SERVER_BIND_UNSPECIFIED_NETIF

```
 OPENTHREAD_CONFIG_DNSSD_SERVER_BIND_UNSPECIFIED_NETIF 0
```
Define to 1 to bind DNS-SD server to unspecified interface, 0 to bind to Thread interface.

### OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE

```
 OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 0
```
Define to 1 to enable DNS-SD Server support.

### OPENTHREAD_CONFIG_DNSSD_SERVER_PORT

```
 OPENTHREAD_CONFIG_DNSSD_SERVER_PORT 53
```
Define the DNS-SD Server port.

### OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE

```
 OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_ENABLE 0
```
Define to 1 to enable upstream forwarding support.

The platform MUST implement `otPlatDnsStartUpstreamQuery` and `otPlatDnsCancelUpstreamQuery`.

### OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_MOCK_PLAT_APIS_ENABLE

```
 OPENTHREAD_CONFIG_DNS_UPSTREAM_QUERY_MOCK_PLAT_APIS_ENABLE 0
```
Define to 1 to add mock (empty) implementation of upstream query platform APIs.

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

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