This function adds a DNS zone record.
Important:
Note:
On servers that run CentOS 7, you may see a named
warning about the absence of SPF resource records on DNS.
bind-9.9.4-23.el7
, which is an updated version of BIND that complies with RFC 7208. To resolve this issue, update your operating system to a version that contains the updated version of BIND. For more information, read the Red Hat Bugzilla case about SPF record errors.required | string or string The record's class. |
domain required | string <domain> The new zone record's domain. |
name required | string <domain> The record's name. Note: Do not omit any necessary trailing periods. |
ttl | integer >= 1 Default: 86400 The record's Time To Live (TTL), in seconds. |
type required | string The DNS record type:
When you call this function, you must include the additional parameters for the desired zone record type. Select a zone record from the menu to view the required additional parameters: |
address | string <ipv4> |
HTTP Request was successful.
object |
class=IN&domain=example.com&name=hostname.example.com.&ttl=86400&type=A&address=192.168.0.20
{- "metadata": {
- "command": "addzonerecord",
- "reason": "Bind reloading on hostname using rndc zone: [example.com]\n",
- "result": 1,
- "version": 1
}
}