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.

"Edit DNS Zone" is empty despite forum tips

Discussion in 'Bind / DNS / Nameserver Issues' started by wsenter, Nov 30, 2006.

  1. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    THIS TOPIC WAS SOLVED...SEE MY LAST POST


    In WHM when I click "Edit DNS Zone", the DNS list is empty.

    I have researched this here already as well. I have done everything as listed in this thread..

    http://forums.cpanel.net/showthread.php?t=59921

    and this one....

    http://forums.cpanel.net/showthread.php?t=59920

    I even did upcp, updatenow, fixcommon problems, fix everything etc..

    All files ARE still located in '/var/named/' but not showing up in WHM. As a side note many of the files in that directory WERE owned by root.root and I updated it to named.named.

    Anyone have any further ideas for me?
     
    #1 wsenter, Nov 30, 2006
    Last edited: Nov 30, 2006
  2. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Try:

    Code:
    chown root:named /var/named; \
    chmod -R 644 /var/named/*
    
    What's the output of ls -lh /var/named/ and also ls -lh /etc/named.conf
     
  3. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    You said..

    Code:
    chown root:named /var/named; \
    chmod -R 644 /var/named/*

    I did not make any changes as of yet as isn't there a folder in named with the following properties...

    drwxrwx--- 2 named mail 4.0k Aug 7 2004 mail/

    Let me know as I did not want to make any changes to that or anything in that folder

    Code:
    root@host [~]# ls -lh /etc/named.conf
    -rw-r--r--    1 root     root          37k Nov  1 23:25 /etc/named.conf
    
     
  4. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Please confirm what you mean?
    I would suggest contracting a system admin to look into this further.
     
  5. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    Carl. Sorry I was not clearer. I just meant that I did not want to run "chmod -R 644 /var/named/*"

    My reasoning for not running this was due to the fact that IN named there is the mail folder and I thought that the folder mail and it's contents were to be set at 660 and not 644 or am I wrong?

    Upon looking into this it appears as though the "mail" folder only has 1 file so I manually changed it back. Here you go...

    Code:
    root@host [/]# chmod -R 644 /var/named/*; chmod 660 /var/named/mail;
    root@host [/]# ls -lh /var/named/
    -rw-r--r--    1 named    named         890 Aug  7  2004 domain1.com.db
    -rw-r--r--    1 named    named         703 Feb 14  2005 domain2.com.db
    -rw-r--r--    1 named    named         497 Nov  3  2004 domain3.org.db
    -rw-r--r--    1 named    named         930 Aug  7  2004 domain4.com.db
    -rw-r--r--    1 named    named         868 Aug  7  2004 domain5.com.db
    -rw-r--r--    1 named    named         767 Aug  7  2004 domain6.ca.db
    -rw-r--r--    1 named    named         668 Aug  7  2004 domain7.com.db
    -rw-r--r--    1 named    named         870 Aug  7  2004 domain8.com.db
    
    The above is only a partial listing. There are actually about 290 zone files but that should give you the idea on the permissions/ownership. Let me know if you have any other ideas as I am running low on them. Seriously appreciate the help.
     
  6. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    At a glance it looks fine. Try tailing the cpanel error log when you go to the edit dns page:
    tail -f /usr/local/cpanel/logs/error_log
     
  7. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    No errors of any kind while the page is loading. However each time I type in the command I get the following...

    Code:
    root@host [/]# tail -f /usr/local/cpanel/logs/error_log
    Compilation failed in require at /usr/local/cpanel/Cpanel/Gzip.pm line 14.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Gzip.pm line 14.
    Compilation failed in require at /usr/local/cpanel/whostmgr/bin/dnsadmin line 22.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/bin/dnsadmin line 22.
     is only avaliable with the XS version at /usr/lib/perl5/site_perl/5.8.7/Compress/Zlib.pm line 9
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Compress/Zlib.pm line 9.
    Compilation failed in require at /usr/local/cpanel/Cpanel/Gzip.pm line 14.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Gzip.pm line 14.
    Compilation failed in require at /usr/local/cpanel/whostmgr/bin/dnsadmin line 22.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/bin/dnsadmin line 22.
    
    I am not sure what that dnsadmin error is on line 22. Note that these errors came up JUST from viewing the log. I had not even opened up the edit dns zone page.
     
  8. wsenter

    wsenter Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    UPDATE: SOLVED

    Ok...I actually got it figured out. Orginally I just had done this per the other forum posts...

    Code:
    root@host /scripts/perlinstaller Compress::Raw::Zlib;/scripts/perlinstaller --force Scalar::Util;
    
    And that did not seem to do the trick.

    After that I just wanted to make sure that everything was up to date so I did this...

    Code:
    cd /scripts;./updatenow;./upcp ---force;./mysqlup --force;./exim4 --force;./fixeverything;
    
    ((the above took quite awhile to run))

    Then after the above was done I ran this AGAIN...

    Code:
    root@host /scripts/perlinstaller Compress::Raw::Zlib;/scripts/perlinstaller --force Scalar::Util;
    
    Everything is now working. My thanks go out to carluk for his help in trying to help me troubleshoot this.
     
  9. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    /usr/local/cpanel/bin/checkperlmodules would likely have resolved the problem for you

    The above is a bad idea and you would only need to do the following:
    /scripts/upcp --force
     
Loading...

Share This Page