problem with dns_raw_save_post.sh

huizinga

New member
Joined
May 17, 2008
Messages
3
Hello,

when i execute:
https://server.mycompany.nl:2222/CMD_API_DNS_ADMIN?action=rawsave&domain=my-company-domain.nl

i got the following error:
error=1&text=Cannot save raw zone&details=Unable to write file /etc/namedb/my&#45company&#45domain.nl.db &#58 data is empty&#60br&#62
&#60br&#62

This API command will be called by DirectAdmin when i update an DNS zone on een remote connected Multi-server-setup box.

see: http://www.directadmin.com/features.php?id=1094

when i try to update a DNS record the update works fine (the zone will be updated on all connected DA servers). I like to handle some things after every DNS update on every server (DNS SEC related) so i need the script
/usr/local/directadmin/scripts/custom/dns_raw_save_post.sh
to work. This script is not called, i think it's related to the problem with the API above

Can someone please help me?
 
Hello,

The script /usr/local/directadmin/scripts/custom/dns_raw_save_post.sh is triggered only on local server and on local action from Directadmin interface, in other words it does not run on API call. You should use /usr/local/directadmin/scripts/custom/domain_create_post.sh instead

Related http://www.directadmin.com/features.php?id=445
 
Back
Top