Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Angry Unable to parse zone????

    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. #2
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default 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.
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Error while parsing zonedata for *DOMAIN NAME HERE*.com: expected valid rname, line 4
    Looks like someone may have cut and pasted a template sample and forgot to update a line with their domain name.

  4. #4
    Member
    Join Date
    Dec 2005
    Posts
    47

    Default

    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. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by cobro View Post
    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
    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. #6
    Registered User
    Join Date
    Jan 2009
    Location
    chicago
    Posts
    2

    Thumbs up 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.

Similar Threads & Tags
Similar threads

  1. Bug? Unable to parse zone: Invalid DNS record: Invalid name provided.
    By bazzi in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 12-28-2009, 06:42 PM
  2. Replies: 8
    Last Post: 11-12-2009, 05:52 AM
  3. Copying Dns Zones (internal error) Unable to get the zone
    By markhard in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-23-2008, 08:53 AM
  4. Unable to save changes in Zone file.
    By bryanabhay in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-16-2007, 11:53 PM
  5. resellers unable to edit zone file
    By Luftwaffe in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-22-2002, 09:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube