This function installs a Sender Policy Framework (SPF) record for a domain on the DNS server.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ install_spf_records \ domain='example.com' \ record='v%3Dspf1%20%2Bip4%3A1192.0.2.0%20-all'
{- "data": {
- "payload": [
- {
- "domain": "example.com",
- "msg": "[REPLACE:TXT@example.com.:v=spf1 ip4:192.0.2.0 -all]",
- "status": 1
}
]
}, - "metadata": {
- "command": "install_spf_records",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}