# Create DNS zone This function creates a DNS zone. If , this function does the following: * Adds a DNS entry in the file, where represents the parameter's value. * Creates the file, where represents the new zone's domain. * Creates the file, where represents the new zone's domain. When you call this function, the system uses the domain name and IP address that you supply. WHM's standard zone template determines all other zone information. This function generates the DNS zone's MX record, domain PTR, and A records automatically. When you disable the DNS role, the system this function. You use this function to add temporary domains. Endpoint: GET /adddns Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The new zone's domain. Example: "example.com" - `ip` (string, required) The domain's IP address. Example: "192.168.0.20" - `ipv6` (string,null) The domain's IPv6 address. Example: "2001:0db8:0:0:1:0:0:1" - `template` (string) The zone file template. * * * * The name of a custom zone template file in the directory. Example: "standard" - `trueowner` (string,null) The new zone's owner. This parameter defaults to the currently-authenticated user. Example: "user" ## Response 200 fields (application/json): - `metadata` (object) - `metadata.command` (string) The method name called. Example: "adddns" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "Added example.com ok belonging to user user" - `metadata.result` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1