This function creates a new MX record.
Important:
When you disable the DNS role, the system disables this function.
domain required | string The zone record's domain. Example: |
exchange required | string The domain's mail exchanger. Example: |
name required | string The record name. Example: |
preference required | integer The MX record's priority order. Note: Lower numbers indicate a higher priority order. Example: |
class | string Default: The record's class. Example: |
ttl | integer Default: The record's Time To Live (TTL) in seconds. Example: |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ savemxs \ domain='example.com' \ name='mail.example.com' \ exchange='mail.example.com' \ preference='20'
{- "metadata": {
- "command": "savemxs",
- "reason": "Bind reloading on server1 using rndc zone: [example.com]\n",
- "result": 1,
- "version": 1
}
}