Create unbound DNS resolver

This function creates an Unbound (libunbound) DNS resolver configuration.

Important:

When you disable the DNS role, the system disables this function.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  set_up_dns_resolver_workarounds

Response samples

Content type
application/json
{
  • "data": {
    • "flags": {
      • "do-ip6": "no",
      • "do-udp": "no",
      • "edns-buffer-size": "512"
      }
    },
  • "metadata": {
    • "command": "set_up_dns_resolver_workarounds",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}