I have a CentOS release 3.5 server. Everytime a new account is added, it does not start resolving by itself until I manually reload rndc through shell.
I was looking for a cron that can reload it every 1min to 5 min.
I tried the following:
* * * * * /usr/sbin/rndc reload
* * * * * /scripts/reloadrndc
where /scripts/reloadrndc has:
None of these crons are reloading it. The crons are working fine otherwise.
tail -f /var/log/cron shows "Jul 8 01:24:00 ser CROND: (root) CMD (/usr/sbin/rndc reload)" every minute.
I used "crontab -e" for adding the cron. And manually I can run "/usr/sbin/rndc reload" as well as "/scripts/reloadrndc" without any issue and that updates named and sites work fine.
But when I run it through cron named doesnot get updated at all!
But its still the same. I renamed the scrip to "reloadrndc.sh".
The cronoutput doesnt show any error either.
Cron runs every two minutes now. Thats what the cron log says. Also I tried adding a line after the rndc reload command to "wall test".. that worked too.. But rndc doesnt get reloaded!!