How can I make the option "Synchronize DNS Records with Primary Nameserver" run every day, or each X hours?
How can I make the option "Synchronize DNS Records with Primary Nameserver" run every day, or each X hours?
Set up a cron job for root.
0 */2 * * * /scripts/dnstransfer
This will make it update every 2 hours.
when I run the script, I get the following error:
./dnstransfer
Rebuilding DNS Zones List from master server .....
stdin: is not a tty
named.conf 100% |**********************************************************************************************************| 159 KB 00:00
ndc: connect failed: connection refused
Rebuild Complete
Are the files synced or not?
Make sure you have run /scripts/fixndc 2-3 times. Then also you have to establish a trust relationship with the primary through WHM.
the trust relation is set, and sync works trough the WHM. does the error mean it is not synced?
Do I still have to set up a cron for cpanel 8. Or will the nameserver syc by themselves.
you need to set up the sync yourself. i myself did not succeed in this. i set up an rsync and cron.hourly between the two servers, which syncs the named dir and named.conf each hour.