Child pages
  • WHM API 1 Functions - set_up_dns_resolver_workarounds
Skip to end of metadata
Go to start of metadata

Description

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

Examples


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/set_up_dns_resolver_workarounds
 Command Line
whmapi1 set_up_dns_resolver_workarounds


Notes:

  • Unless otherwise noted, you must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 1 documentation or run the whmapi1 --help command.
  • If you run CloudLinux™, you must use the full path of the whmapi1 command:

    /usr/local/cpanel/bin/whmapi1

 Output (JSON)
{
   "metadata":{
      "reason":"OK",
      "result":1,
      "command":"set_up_dns_resolver_workarounds",
      "version":1
   },
   "data":{
      "flags":{
		"do-udp":"no"
      }
   }
}


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

Parameters

This function does not accept any parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
flags hash

A hash of libunbound configuration options.

Note:

The function only returns an option if the system finds a configuration issue.

This hash includes the do-ip6edns-buffer-size, and do-udp returns. 


do-ip6

string

The system cannot create an IPv6 socket.

The function returns this value in the flags hash.

no is the only possible value.

no

edns-buffer-size

string

The extension mechanism for DNS (EDNS) length size is at or exceeds 512 bytes.

The function returns this value in the flags hash.

512 is the only possible value.512

do-udp

string

The system cannot receive a User Datagram Protocol (UDP) DNS response.

The function returns this value in the flags hash.

no is the only possible value.no