The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS Editor Errors

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

  1. lnickel

    lnickel Registered

    Joined:
    Jun 22, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.

    Lance

    cPanel: In the Advanced DNS Editor:

    Failed to serialize zone file: There was an error while loading the zone for mydomain.com. 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 mydomain.com]


    WHM:

    Code:
    ; cPanel first:11.38.2.6 (update_time):1390262353 Cpanel::ZoneFile::VERSION:1.3 hostname:ip-50-63-190-32.ip.secureserver.net latest:11.38.2.6
    ; Zone file for mydomain.com
    $TTL 14400
    mydomain.com. 86400 IN SOA ns1.ip.secureserver.net. my.email.com. (
    2014012001 ;Serial Number
    86400 ;refresh
    7200 ;retry
    3600000 ;expire
    86400 )
    
    mydomain.com. 86400 IN NS ns1.ip.secureserver.net.
    mydomain.com. 86400 IN NS ns2.ip.secureserver.net.
    
    
    mydomain.com. 14400 IN A 50.63.190.32
    
    localhost 14400 IN A 127.0.0.1
    
    mydomain.com. 14400 IN MX 0 mydomain.com.
    
    mail 14400 IN CNAME mydomain.com.
    www 14400 IN CNAME mydomain.com.
    ftp 14400 IN CNAME mydomain.com.
    cpanel 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
    webdisk 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
    whm 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
    webmail 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
    
    
     
  2. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    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 '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:
    Code:
    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:
    Code:
    /scripts/updatenameserverips
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page