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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/set_up_dns_resolver_workarounds
Request samples
whmapi1 --output=jsonpretty \
  set_up_dns_resolver_workarounds
Response samples
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
    }
}