This function returns a domain's DNS zone configuration.
Important:
parse_dns_zone
function.domain
or the zone
parameters. 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.HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ dumpzone \ domain='example.com'
{- "data": {
- "zone": [
- {
- "address": "192.168.0.20",
- "type": "A",
- "Line": 1,
- "class": "IN",
- "name": "hostname.example.com",
- "ttl": 86400
}
]
}, - "metadata": {
- "command": "dumpzone",
- "reason": "Zone Serialized",
- "result": 1,
- "version": 1
}
}