Skip to main content

Global zone update command not working?

Comments

6 comments

  • 24x7server
    Hi, # cd /var/named # sed -i 's//2018042001/g' *.db You can execute above command to change the serial number..
    0
  • rhm.geerts
    Thank you, I can use that for the domains not changed manually yet. Still wondering why on manual change the date is not change to todays date like 20180422xx. I discovered for some reason the WHM date is not corresponding the server date. Changes made today with the zone editor will change the serial to 20180421.xx today on the 22th which is server date/time.
    0
  • cPanelMichael
    Hello @rhm.geerts, Changes to the DNS zone using a cPanel & WHM feature such as "WHM >> Edit DNS Zone" don't replace the serial with the current date. Instead, the serial is simply incremented by one digit. For example, let's say a zone was created on 04-16-2018: # grep -i 'serial' /var/named/domain.tld.db 2018041600 ;Serial Number
    Using "WHM >> Edit DNS Zone" to make a change to this zone in the future will increment the serial by one. EX: # grep -i 'serial' /var/named/domain.tld.db 2018041601 ;Serial Number
    Thank you.
    0
  • rhm.geerts
    Hello Michael. That's indeed what I discovered. For some reason it changed to 20180421 yesterday on that domain I tested. Normally it doesn't, you're correct. But my question was if there is a reason for it. I know it's not really necessary to use the correct date, but as far as I know it's common practice. DA for example uses correct dates too. And when used it's easy to see when the last DNS change was made. Which can't be seen by the way it's used now. So that's why I wonder why cPanel is not using it that way.
    0
  • cPanelMichael
    Hello, I don't believe we avoid using the date of the modification for any specific reason, other than it's not required as long as the serial is incremented. I encourage you to open a feature request if you'd like to see a change to how this works:
    0
  • rhm.geerts
    It's indeed no requirement, I thought that would be the reason. Thank you for confirmation. This can be marked as solved!
    0

Please sign in to leave a comment.