Skip to main content

DNS only server date/time update

Comments

6 comments

  • cPanelMichael
    Hello, You can sync your server time with the following command:
    rdate -s rdate.cpanel.net
    Note that "rdate" requires TCP outbound traffic over port 37, in-case you have any firewall rules that restrict access. Thank you.
    0
  • bloatedstoat
    Thanks for this Michael. I should have been a little more explicit, I want to set the server time as Australia/Melbourne as the current time is set as 14 hours behind Melbourne. No GUI exists to set the default time-zone to AEST. Thank you.
    0
  • cPanelMichael
    You will need to change the time zone manually from the command line on cPanel DNS-Only. Here's an example of how to do this on CentOS 6:
    cp /etc/localtime /root/old.timezone rm /etc/localtime ln -s /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
    You can open a feature request for the inclusion of this option on cPanel DNS-Only via: Submit a Feature Request Thank you.
    0
  • bloatedstoat
    Thank you Michael, all our servers are now running the same time. Appreciated.
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • visiba
    Just to add that changing the timezone is a bit different under CentOS 7. The syntax is as follows to set timezone:
    # timedatectl set-timezone time_zone
    Where time_zone is one of the time zones available. An example would be:
    # timedatectl set-timezone America/Chicago
    0

Please sign in to leave a comment.