Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DNS Editor Errors

Discussion in 'Bind/DNS/Nameserver' started by lnickel, Jun 22, 2015.

  1. lnickel

    lnickel Registered

    Jun 22, 2015
    Likes Received:
    Trophy Points:
    United States
    cPanel Access Level:
    Root Administrator
    Hi all. I guess this is a 2 part question. One, how to manually edit a zone file as in WHM wont let me. The other is how to fix the bad dotted quad? From what I've read the server is either expecting the domain to have the dot or not. I'm not really sure.

    Many thanks!!!! Sorry if this is the wrong place.


    cPanel: In the Advanced DNS Editor:

    Failed to serialize zone file: There was an error while loading the zone for Please correct any errors in this zone manually and try again. The exact error from the parser was: bad IP address, line 24
    : [cpanel 14400 IN A]


    ; cPanel first: (update_time):1390262353 Cpanel::ZoneFile::VERSION:1.3 latest:
    ; Zone file for
    $TTL 14400 86400 IN SOA (
    2014012001 ;Serial Number
    86400 ;refresh
    7200 ;retry
    3600000 ;expire
    86400 ) 86400 IN NS 86400 IN NS
     14400 IN A
    localhost 14400 IN A 14400 IN MX 0
    mail 14400 IN CNAME
    www 14400 IN CNAME
    ftp 14400 IN CNAME
    cpanel 14400 IN A near '': bad dotted quad
    webdisk 14400 IN A near '': bad dotted quad
    whm 14400 IN A near '': bad dotted quad
    webmail 14400 IN A near '': bad dotted quad
  2. madmanmachines

    madmanmachines Well-Known Member

    Nov 28, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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 '', you would simply input 'ftp' or ''.

    To manually update the zone, you will find the file at '/var/named/'. 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:
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned in the previous post, you can manually edit the /var/named/$ 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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice