MadDemonoide
New member
- Joined
- Jun 14, 2021
- Messages
- 5
Hi all,
I am trying to add a MX record through the API.
Whatever I try, I keep getting the error: error=1&text=Cannot Add Record&details=You must provide a valid name and value
This is the curl request I am trying
curl -s --max-time 15 --request POST --user 'admin:APIKEYREMOVED' --data 'domain=testdomein.nl&action=add&type=MX&name=testdomein.nl.&value=10 mail' https://web02.DOMAINREMOVED.nl:2222/CMD_API_DNS_ADMINN
If I use the same format with an A record, it inserts fine. Does anyone know what I am doing wrong with the values? I looked up on the forum, but I think it should work..
I am trying to add a MX record through the API.
Whatever I try, I keep getting the error: error=1&text=Cannot Add Record&details=You must provide a valid name and value
This is the curl request I am trying
curl -s --max-time 15 --request POST --user 'admin:APIKEYREMOVED' --data 'domain=testdomein.nl&action=add&type=MX&name=testdomein.nl.&value=10 mail' https://web02.DOMAINREMOVED.nl:2222/CMD_API_DNS_ADMINN
If I use the same format with an A record, it inserts fine. Does anyone know what I am doing wrong with the values? I looked up on the forum, but I think it should work..
Last edited: