how can I change domain.db with custom script.

kalpase

New member
Joined
Nov 14, 2016
Messages
1
Hi there,
I'd like to use custom scripts to change /var/named/domain.db and add some extra fields.
so i changed dns_create_post:
Code:
nano dns_create_post.sh
echo 'some data ' >> $base/$domain.db
but unfortunately it does not work correctly! and Changes were not applied.
I wrote this script and realized that "$base/$domain.db" create after "exit 0;" run!
Code:
#!/bin/bash
echo "log 1" > $0.log
sleep 2
ls -lash $base$domain.db >> $0.log
cat $base$domain.db >> $0.log
sleep 2
exit 0;
how can i change domain.db with custom script.
 
Back
Top