"Edit DNS Zone" is empty despite forum tips

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
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?
 
Last edited:

carluk

Well-Known Member
Sep 2, 2003
162
0
166
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
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
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:
[email protected] [~]# ls -lh /etc/named.conf
-rw-r--r--    1 root     root          37k Nov  1 23:25 /etc/named.conf
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
I did not make any changes as of yet as isn't there a folder in named with the following properties...
Please confirm what you mean?
I would suggest contracting a system admin to look into this further.
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
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:
[email protected] [/]# chmod -R 644 /var/named/*; chmod 660 /var/named/mail;
[email protected] [/]# 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.
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
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
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
Texas
No errors of any kind while the page is loading. However each time I type in the command I get the following...

Code:
[email protected] [/]# 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.
 

wsenter

Well-Known Member
Aug 5, 2003
88
0
156
Texas
UPDATE: SOLVED

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

Code:
[email protected] /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:
[email protected] /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.
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
/usr/local/cpanel/bin/checkperlmodules would likely have resolved the problem for you

cd /scripts;./updatenow;./upcp ---force;./mysqlup --force;./exim4 --force;./fixeverything;
The above is a bad idea and you would only need to do the following:
/scripts/upcp --force