Skip to main content

DNS Editor Errors

Comments

2 comments

  • madmanmachines
    Hi Lance, I would try doing so from WHM > Edit DNS Zone first. You should check for whitespace. Your domains should also have '.' after their entry if you do not want the DNS zone name appended. For example, the subdomain 'ftp.domain.com', you would simply input 'ftp' or 'ftp.domain.com.'. To manually update the zone, you will find the file at '/var/named/domainnamehere.com.db'. You must access this file from root. I recommend doing so from SSH as you will need to update the serials regardless. Before making any changes here, you should backup '/var/named/'. Once changes have been made, you can run the following command to update the serials:
    find /var/named/*.db -mtime -1 -exec perl -pi -e 'if (/^\s+(\d{10})\s+;\s+serial/i) { my $i = $1+1; s/$1/$i/;}' '{}' \;
    Should you update nameserver records manually, you should also issue the following:
    /scripts/updatenameserverips
    0
  • cPanelMichael
    Hello :) Yes, as mentioned in the previous post, you can manually edit the /var/named/$domain.com.db file if you need to edit a zone manually via the command line instead of through Web Host Manager. Ensure you update the serial for the zone if you choose this route. Thank you.
    0

Please sign in to leave a comment.