This function retrieves and checks the DMARC record for one or more domains.
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
}
}