This function retrieves and checks the DMARC record for one or more domains.
domain | string The domain for which to check the DMARC record. Note: To check multiple domains, duplicate or increment the parameter name.
For example, If you do not include this argument, the system will validate DMARC records for all domains on the server. domain domain domain |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ validate_current_dmarcs \ domain='example.com'
{- "data": {
- "payload": [
- {
- "domain": "example.com",
- "error": "",
- "record": "v=DMARC1; p=none;",
- "state": "VALID",
- "subdomain": "_dmarc.example.com",
- "suggested": "v=DMARC1; p=none;"
}, - {
- "domain": "example2.com",
- "error": "(XID 4krw35) DNS returned “SERVFAIL” (code 2) in response to the system’s query for “_dmarc.example2.com”’s “TXT” records.",
- "record": "",
- "state": "DNS_ERROR",
- "subdomain": "_dmarc.example2.com",
- "suggested": "v=DMARC1; p=none;"
}
]
}, - "metadata": {
- "command": "validate_current_dmarcs",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}