Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #41  
Old 15th August 2007, 18:01
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,561
Thanks: 791
Thanked 4,978 Times in 3,899 Posts
Default

This problems happen when the permissions of the bind directory where changed and ISPConfig is not able to read it anymore. this might happen e.g. when you update bind or when you change them manually.

Solution:

Reconfigure the directory permissions of the folders in /var/named/... as described in the perfects etup guide for your linux distribution and then set the path again in ISPConfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #42  
Old 15th August 2007, 18:17
roadster roadster is offline
Junior Member
 
Join Date: Apr 2007
Location: UK
Posts: 18
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by till
This problems happen when the permissions of the bind directory where changed and ISPConfig is not able to read it anymore. this might happen e.g. when you update bind or when you change them manually.
I'd previously done this too without effect, Till, although your explanation seems appropriate as Bind had been updated a couple of days back via a yum update.

Thanks again

Roadster
Reply With Quote
  #43  
Old 15th August 2007, 18:19
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,561
Thanks: 791
Thanked 4,978 Times in 3,899 Posts
Default

If it does not had an effect, then the permissions are still wrong. The directory that you enther in ISPConfig must be world readable.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #44  
Old 15th August 2007, 18:42
roadster roadster is offline
Junior Member
 
Join Date: Apr 2007
Location: UK
Posts: 18
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by till
If it does not had an effect, then the permissions are still wrong. The directory that you enther in ISPConfig must be world readable.
This is what I ran, as per the Perfect Setup and instructions from Falko earlier in this thread, + associated output:

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
ln: creating symbolic link `chroot/..' to `../../': File exists
chkconfig --levels 235 named on
bash: chkconfig: command not found
/etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found

I checked that this was actually what they had been set to and can confirm that they are reporting as such.
Reply With Quote
  #45  
Old 16th August 2007, 14:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by roadster
chkconfig --levels 235 named on
bash: chkconfig: command not found
Your PATH variable seems to be wrong. Try
Code:
/sbin/chkconfig --levels 235 named on
instead.
Quote:
Originally Posted by roadster
Error in named configuration:
/etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found

I checked that this was actually what they had been set to and can confirm that they are reporting as such.
Please make sure that all DNS settings under Management > Server > Settings > DNS are correct.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #46  
Old 20th August 2007, 00:41
aceyzeriat aceyzeriat is offline
Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 47
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi everybody,
Now this is what I got in my /var/named/chroot/var/named/ :
in named.conf I have forced the value of "directory" here to be able to restart the named server after copying the new zone files here ...

lrwxrwxrwx 1 root named 6 Mar 23 23:06 chroot -> ../../
drwxrwx--- 2 named named 4096 Aug 25 2004 data
-rw-r----- 1 root named 198 Sep 11 2006 localdomain.zone
-rw-r----- 1 root named 195 Sep 11 2006 localhost.zone
-rw-r----- 1 root named 427 Sep 11 2006 named.broadcast
-rw-r----- 1 root named 2518 Sep 11 2006 named.ca
-rw-r----- 1 root named 424 Sep 11 2006 named.ip6.local
-rw-r----- 1 root named 426 Sep 11 2006 named.local
-rw-r----- 1 root named 427 Sep 11 2006 named.zero
-rw-r----- 1 root named 647 Jun 2 20:04 pri.0.168.192.in-addr.arpa
-rw-r----- 1 root named 739 Jun 2 20:04 pri.0.168.192.in-addr.arpa~
-rw-r----- 1 root named 2315 Jun 2 20:04 pri.214.196.88.in-addr.arpa
-rw-r----- 1 root named 2223 Jun 2 20:04 pri.214.196.88.in-addr.arpa~
-rw-r----- 1 root named 795 May 3 23:55 pri.mydomain.com


Now I believe I have a mix up of access right for /home/admispconfig/ispconfig/web/multidoc/edit but also of ownership. What group and user is supposed to own all those directory, particularly /home/admispconfig/ispconfig/web/multidoc/edit ?

and what is supposed to be the directory containing the zone files ?
/home/admispconfig/ispconfig/web/multidoc/edit ? or
/var/named/chroot/var/named/ ?

now this is what I have in /home/admispconfig/ispconfig/web/multidoc/edit
-rwxr-xr-x 1 admispconfig admispconfig 2769 Aug 13 22:16 delete.php
-rwxr-xr-x 1 admispconfig admispconfig 31702 Aug 13 22:16 edit.php
-rwxr-xr-x 1 admispconfig admispconfig 2021 Aug 13 22:16 empty_trash.php
-r--r----- 1 named named 198 Sep 11 2006 localdomain.zone
-r--r----- 1 root named 195 Sep 11 2006 localhost.zone
-r--r----- 1 root named 427 Sep 11 2006 named.broadcast
-rw-r--r-- 1 named named 2769 Aug 17 21:08 named.ca
-r--r----- 1 root named 424 Sep 11 2006 named.ip6.local
-rw-r--r-- 1 named named 256 Aug 17 21:08 named.local
-r--r----- 1 root named 427 Sep 11 2006 named.zero
-rwxr-xr-x 1 admispconfig admispconfig 3649 Aug 13 22:16 new_switch.php
-rwxr-xr-x 1 admispconfig admispconfig 2190 Aug 13 22:16 node_insert.php
-rwxr-xr-x 1 admispconfig admispconfig 7167 Aug 13 22:16 node.php
-rwxr-xr-x 1 admispconfig admispconfig 6048 Aug 13 22:16 papierkorb.php
-rw-r--r-- 1 named named 1144 Aug 18 16:39 pri.0.168.192.in-addr.arpa
-rw-r--r-- 1 named named 1104 Aug 18 16:39 pri.0.168.192.in-addr.arpa~
-rw-r--r-- 1 named named 1944 Aug 18 16:39 pri.214.196.88.in-addr.arpa
-rw-r--r-- 1 named named 2117 Aug 18 16:39 pri.214.196.88.in-addr.arpa~
-rw-r--r-- 1 named named 860 Aug 17 21:08 pri.mydomain.com
(I have copied the ancient files here ...)


Thanks and regards,
arnaud
Reply With Quote
  #47  
Old 20th August 2007, 11:01
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,561
Thanks: 791
Thanked 4,978 Times in 3,899 Posts
Default

Please do not edit anything in /home/admispconfig/ispconfig/web/multidoc/edit, it is not used for DNS! The DNS directory is /var/named/chroot/var/named/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #48  
Old 20th August 2007, 11:41
aceyzeriat aceyzeriat is offline
Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 47
Thanks: 4
Thanked 1 Time in 1 Post
Default

Ooops just in time !
So why can I not change it in the ISP_Config parameters windows.
When I try to enter /var/named/chroot/var/named/ instead of /home/admispconfig/ispconfig/web/multidoc/edit it defaults back to
/etc/bind !! (after a refresh) then after a few minutes it comes back to "/home/admispconfig/ispconfig/web/multidoc/edit" but by luck the named.conf directory remains at /var/named/chroot/var/named/ until I try to modify a DNS entry from ISP_Config. Then the modification are recorded in /home/admispconfig/ispconfig/web/multidoc/edit and the "named.conf" is modified again.

hum I also modified properties according to the command provided earlier in this thread :
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/

no amelioration so far

Thanks and regards,
Arnaud

Last edited by aceyzeriat; 20th August 2007 at 11:45.
Reply With Quote
  #49  
Old 20th August 2007, 11:48
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,561
Thanks: 791
Thanked 4,978 Times in 3,899 Posts
Default

Please have a look at the perfect setup for your linux distribution and install / configure bind as described there.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #50  
Old 20th August 2007, 11:51
aceyzeriat aceyzeriat is offline
Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 47
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Where ...
?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error Hellbound General 4 7th January 2007 11:50
Named crashing every 20 min RingofFire Installation/Configuration 4 23rd November 2006 02:39
BIND broke adamluz Installation/Configuration 4 2nd June 2006 21:31
Please explain Bind, named, NameServer, DNS domino HOWTO-Related Questions 7 22nd August 2005 10:18


All times are GMT +2. The time now is 09:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.