esp_openthread_set_dnsserver_addr() function
This function configures the main DNS server address for OpenThread netif.
Arguments
dnsserver_addr
The dns server address.
Return value
- ESP_OK on sussess - ESP_ERR_INVALID_ARG if dnsserver_addr is invalid - ESP_ERR_ESP_NETIF_IF_NOT_READY if openthread network interface is not initialized - ESP_ERR_ESP_NETIF_INVALID_PARAMS if failed to call esp_netif APIs setting dns info