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.

Unable to parse zone????

Discussion in 'General Discussion' started by jonbeard, Jul 11, 2009.

  1. jonbeard

    jonbeard Registered

    Joined:
    Jul 11, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hey guys I recently updated all my cPanel software, and now when I try to Edit a DNS zone, I get:

    Unable to parse zone: Error while parsing zonedata for *DOMAIN NAME HERE*.com: expected valid rname, line 4 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.

    Any help guys? Plz? Be detailed if you know how to fix it. Thanks in advance <3

    -Me
     
  2. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    How to recreate a zone file

    Hi,

    The error means that the dns zone has invalid data in it and it cannot be loaded. So you need to recreate the zone to fix this.

    you can use the following cpanel script to do this

    /scripts/pkgacct accountname ( just to backup the account)

    /scripts/killdns domainname

    /scripts/adddns --domain domainname

    Please note that while recreating the domain using the above script it will not create the subdomain. It will create the default dns records. You can also specify the ip address using " --ip X.X.X.X " option

    After running the scripts you can manually add the entries for the subdomains .

    Hope this helps.
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Looks like someone may have cut and pasted a template sample and forgot to update a line with their domain name.
     
  4. cobro

    cobro Well-Known Member

    Joined:
    Dec 26, 2005
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I get this error while

    Modifying Zone domain.com

    Unable to parse zone: There was an error while loading the zone for domain.com. Please correct any errors in this zone manually and try again. The exact error from the parser was: expected valid serial, line 4 . zone domain.com/IN: loaded serial 2009120906 OK

    domain.com used instead of real domain

    if some one have a fix for this would be great

    thank you
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    There's not a generic fix for errors in the DNS zone file; via root SSH access I would both manually check the zone file for possible typos and run the BIND "named-checkzone" utility for further testing..

    Via root SSH access, the following utility that comes with BIND may be used to run a basic check on the zone file :
    Code:
    # named-checkzone
    I recommend referring to its manual ("man") page for full documentation:
    Code:
    # man named-checkzone
    An example with debug/verbose detail enabled is as follows:
    Code:
    # named-checkzone -d domain.tld /var/named/domain.tld.db
     
  6. johnnyhostile

    johnnyhostile Registered

    Joined:
    Jan 29, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    chicago
    check for syntax errors

    I just faced a problem like this, and there was no way I was going to blow away all of the zones.

    I ended up finding a '+' in the SOA line for the email address and used this command (from the /var/named directory) to fix the syntax errors:

    Code:
    for i in `cat /etc/trueuserdomains | awk -F: '{print $1}'` ;do cp -av $i.db $i.db.bak && sed 's/\+/\./' $i.db.bak > $i.db ;done
    Use that with caution of course.
     
Loading...

Share This Page