add A record via api

BrianUK

Verified User
Joined
Feb 4, 2006
Messages
89
I'm trying to add an a record via the command line api but can't seem to find the right command.

Code:
cd /usr/local/directadmin
killall -9 directadmin
./directadmin b800

I deleted via the gui and output was

Code:
CMD_API_DNS_CONTROL?action=add&domain=mydomain.com&type=A&name=test&value=1.1.1.1&add=Add

I deleted and tried doing via command line

Code:
echo "CMD_API_DNS_CONTROL?action=add&domain=mtdomain.com&type=A&name=test&value=1.1.1.1&add=Add"  >> /usr/local/directadmin/data/task.queue

But it did not add it I also tried action= but that didn't work either. I have the same problem when trying to delete an a record.

Code:
echo "CMD_API_DNS_CONTROL?domain=mydomain.com&arecs9=name%3Dtest%26value%3D1.1.1.1&delete=Delete+Selected&action=select
 
Back
Top