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:
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!
how can i change domain.db with custom script.
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
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;