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.
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
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.
Your PATH variable seems to be wrong. Try Code: /sbin/chkconfig --levels 235 named on instead. Please make sure that all DNS settings under Management > Server > Settings > DNS are correct.
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
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/
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
Please have a look at the perfect setup for your linux distribution and install / configure bind as described there.
Where you find all official documentation about ISPConfig, on the ispconfig.org documentation page http://www.ispconfig.org/documentation.htm
The reason that causes your problem is that ISPConfig is not able to read the bind config directory. And in this case it falls back to the wrong directory /home/admispconfig/ispconfig/web/multidoc/edit. So the solution to your problem is to configure bind as described in the perfect setup guide as this will ensure that the directories are readable for the admispconfig user.
Hi Till, This is what the perfect install for FC6 says about bind : 8 Install A Chrooted DNS Server (BIND9) To install a chrooted BIND9, we do this: yum install bind-chroot Next, we change a few permissions and start BIND: 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 chkconfig --levels 235 named on /etc/init.d/named start BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.). I have done those modifications but I have not retried to modify the DNS directeory through the ISP_Config interface. I'll give it a try. Thanks and regards, Arnaud
Yes it seems to work. I have changed again the zone file directory to /var/named/chroot/var/named/ in ISP_Config and this time it holds and works ! I still have to check that I can modify a DNS entry and that it continues to opperate but everything seems OK now Thanks a lot, Arnaud => => =>
I found it!!! Thank you falko, I had a bad record "simorgh_server" (I think the underline was the problem). After removing it and setting up the corresponding step again it start successfully. the step for installing DNS server in ISPConfig manual is: 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 chkconfig --levels 235 named on /etc/init.d/named start Again thank you all for kindly attentions,
Having the same issue after yum Hi Guys, I'm having the same issues starting bind. Error message is: Error in named configuration: /etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found /etc/named.conf:3: parsing failed I have gone through this thread to try to avoid sending this post - but nothing seemed to help. What I've done so far: 1. Followed the perfect setup bind installation process for CENTOS 5.2 2. Unistalled & re-installed bind, then followed step 1 again 3. Changed Mgmt->Server->Settings->DNS->named.conf: to: /etc/named.conf /var/named/chroot/etc/named.conf /var/named/chroot//etc/named.conf Still no joys. Any help would be appreciated. I've also noticed that I cannot send emails with large attachments - not sure whether this is a by-product of BIND issue or not. Thanks in advance
The BIND part of the issue is now resolved. I needed to remove the old /var/named/chroot/etc/named.conf so that a new one is created as part of the BIND config from the Perfect Setup. 2nd issue - emails with attachment not being sent - remains.