Skip to main content

DNS zone Serial

Comments

6 comments

  • Steini Petur
    UPDATE: For anyone that cares I found some code here much more recent then "cPanel Michael" from 2011 echo "Changing zone serial date" sed -i s/'[0-9]\{10\}'/`date +%Y%m%d%H`/ /var/named/*.db the sed code here is enough to alter the serial.. thank god.
    0
  • Steini Petur
    It's not enough, I still get DNS servers responded ERROR: One or more of your nameservers did not respond: The ones that did not respond are: IP 1 IP 2 Until I go via WHM and click Edit zone and apply. Modifying Zone domain zone domain/IN: loaded serial 2016042416 OK Bind reloading on dns using rndc zone: [domain] DNS servers responded Good. All nameservers listed at the parent server responded. What am I missing?? what am i missing after running the sed, and service named reload? that WHM is doing??
    0
  • cPanelMichael
    What am I missing?? what am i missing after running the sed, and service named reload? that WHM is doing??

    Are you using a DNS cluster? Does it make a difference if you run the "rndc reload" command after making the manual modification? Thank you.
    0
  • Steini Petur
    It does not make difference (I had tried that once, forgot to mention it), I am using the old method its a pure cPanel installation not a DNS only and not a cluster, what we're doing is just move our VPS to a DEDI, so i moved /etc/named.conf /var/named/*.db I also took a copy of the nameserverips and the yml file, When I was done doing this and setting up basic ns on the server, I would ARP the IP from the VPS over to the DNS so basically there is NO change in the IP, but it would not work. I ran a command to update the serial, then i did rndc reload or service named reload as well, and still it comes up ERROR but the moment i go from the frontend and edit the record appropriately using your tools and click SAVE it comes in. I just don't get what im missing that WHM does?? the IP's are the same everything is same so zone really shouldn't have to change but I cant manually edit 7k zone files to get them to resolve world wide. It's an active server so I need a solution to perform a MASS change and do everything the WHM "Save" button does after editing a record :/
    0
  • Steini Petur
    Ticket can be closed, figured out my mistake. When i ran the scp -r it reset the user to "root:root" on named folder and named.conf, so when i ran rndc reload it actually failed reloading it then successful.
    0
  • cPanelMichael
    Ticket can be closed, figured out my mistake. When i ran the scp -r it reset the user to "root:root" on named folder and named.conf, so when i ran rndc reload it actually failed reloading it then successful.

    I'm happy to see you were able to determine the cause of the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.