View Full Version : DNS - named will not start ??
brainz
8th March 2007, 09:31
Hi till and falko
The dns named will not start.... when i try to restart it this is what i get..
etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found
help please
regards
brainz
till
8th March 2007, 09:33
Please post the content of the file /root/ispconfig/isp/conf/named.conf.master
brainz
8th March 2007, 09:36
As Requested till,
Here is the content of /root/ispconfig/isp/conf/named.conf.master
options { pid-file "/var/named/chroot/var/run/named/named.pid"; directory "{BINDDIR}"; auth-nxdomain no; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // zone "." { type hint; file "named.ca"; }; zone "0.0.127.in-addr.arpa" { type master; file "named.local"; }; zone "{ZONE}.in-addr.arpa" { type master; file "pri.{ZONE}.in-addr.arpa"; }; zone "{DOMAIN}" { type master; file "pri.{DOMAIN}"; }; zone "{DOMAIN}" { type slave; file "sec.{DOMAIN}"; masters { {MASTERS}; }; }; //// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
till also i get this.. which maybe a clue...
rndc: connect failed: 127.0.0.1#953: connection refused
regards
brainz
brainz
8th March 2007, 09:46
Hi till
i also get this as a email from the server as well
WARNING: service dns not running (server: domain.com, port: 53)!
WARNING: service dns not running (server: domain.com, port: 53)!
WARNING: service not running (server: domain.com, port: 10000)!
regards
brainz
martinfst
8th March 2007, 10:20
Hi till
i also get this as a email from the server as well
regards
brainzThat's because the mailserver and probably spamassassin use DNS for various checks. It will go away when you fixed your DNS.
Is the output you posted for /root/ispconfig/isp/conf/named.conf.master really like that? No new lines?
brainz
8th March 2007, 11:05
Im sorry but yes there are no new lines
martinfst
8th March 2007, 11:56
It should look like:
options {
pid-file "/var/run/bind/run/named.pid";
directory "{BINDDIR}";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "db.root";
//
// a caching only nameserver config
//
zone "." {
type hint;
file "db.root";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "db.local";
};
<!-- BEGIN DYNAMIC BLOCK: named_reverse -->
zone "{ZONE}.in-addr.arpa" {
type master;
file "pri.{ZONE}.in-addr.arpa";
};
<!-- END DYNAMIC BLOCK: named_reverse -->
<!-- BEGIN DYNAMIC BLOCK: named -->
zone "{DOMAIN}" {
type master;
};
<!-- END DYNAMIC BLOCK: named -->
<!-- BEGIN DYNAMIC BLOCK: named_slave -->
zone "{DOMAIN}" {
type slave;
file "sec.{DOMAIN}";
masters { {MASTERS}; };
};
<!-- END DYNAMIC BLOCK: named_slave -->
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
Including the newlines. This is a copy of my master file, which I think I have not modified. But please double check. After replacement, update a DNS entry in the panel and check you have new files in /etc/bind (or /var/lib/named/etc/bind, which is symlinked)
brainz
8th March 2007, 12:18
Im sorry,
But i think the faile is the same here is mine is a readable format...
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "{BINDDIR}";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
<!-- BEGIN DYNAMIC BLOCK: named_reverse -->
zone "{ZONE}.in-addr.arpa" {
type master;
file "pri.{ZONE}.in-addr.arpa";
};
<!-- END DYNAMIC BLOCK: named_reverse -->
<!-- BEGIN DYNAMIC BLOCK: named -->
zone "{DOMAIN}" {
type master;
file "pri.{DOMAIN}";
};
<!-- END DYNAMIC BLOCK: named -->
<!-- BEGIN DYNAMIC BLOCK: named_slave -->
zone "{DOMAIN}" {
type slave;
file "sec.{DOMAIN}";
masters { {MASTERS}; };
};
<!-- END DYNAMIC BLOCK: named_slave -->
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
there is not difference except my named dns will not start....
regards
brainz
till
8th March 2007, 12:44
What is in the field "Zonefiles Dir.:" in ISPConfig under management > server > settings on the dns tab?
brainz
8th March 2007, 12:49
What is in the field "Zonefiles Dir.:" in ISPConfig under management > server > settings on the dns tab?
till this is
/home/admispconfig/ispconfig/web/multidoc/edit
regards
brainz
till
8th March 2007, 12:53
Ok, this explains your problem. Which linux distribution do you use, or do you know where your named configuration is located?
brainz
8th March 2007, 12:56
till
i use fedora core 5 and the named.conf is in the /etc/named.conf
as far as i know...
till would you like me to post the named.conf contence...
regards
brainz
till
8th March 2007, 13:09
Please enter this path in the zonefile field:
/var/named/chroot/var/named
brainz
8th March 2007, 13:16
Please enter this path in the zonefile field:
/var/named/chroot/var/named
hi till i entered the it in the zonefile field in ispconfig and attempted to restart named from ispconfig and it didnt restart. I also tried to restart it using /etc/init.d/named restart and it gave me this...
[root@tracs named]# /etc/init.d/named restart
Stopping named: [FAILED]
Starting named:
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
[FAILED]
[root@tracs named]#
regards
brainz
till
8th March 2007, 13:21
After you entered the new value, click on save and then wait about a minute. Is the new value saved or has it returned to the wrong value when you open the form again after 1-2 minutes?
brainz
8th March 2007, 13:41
After you entered the new value, click on save and then wait about a minute. Is the new value saved or has it returned to the wrong value when you open the form again after 1-2 minutes?
hi till
i waited 1-2 minutes and checked the /etc/named.conf
and it has not changed...... it is still
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/home/admispconfig/ispconfig/web/multidoc/edit";
auth-nxdomain no;
regards
brainz
falko
9th March 2007, 16:57
Any errors in /home/admispconfig/ispconfig/ispconfig.log? What's the output of ls -la /root/ispconfig?
brainz
10th March 2007, 01:33
Any errors in /home/admispconfig/ispconfig/ispconfig.log?
Hi falko
there are no errors just this is the only warning that i have in the log
08.03.2007 - 22:12:52 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: WARNING: could not /etc/rc.d/init.d/named start &> /dev/null
What's the output of ls -la /root/ispconfig?
this is the output.....
[root@tracs named]# ls -la /root/ispconfig
total 104
drwxr-xr-x 9 root root 4096 Mar 8 23:00 .
drwxr-x--- 20 root root 4096 Mar 8 22:50 ..
-rwxr-xr-x 1 root root 33072 Feb 23 20:25 cronolog
-rwxr-xr-x 1 root root 9673 Feb 23 20:25 cronosplit
drwxr-xr-x 12 root root 4096 Feb 23 20:05 httpd
drwxr-xr-x 14 root root 4096 Feb 23 20:25 isp
-rw-r--r-- 1 root root 8 Mar 8 23:00 .old_path_httpd_root
drwxr-xr-x 6 root root 4096 Feb 23 19:59 openssl
drwxr-xr-x 6 root root 4096 Feb 23 20:15 php
drwxr-xr-x 4 root root 4096 Feb 23 20:25 scripts
drwxr-xr-x 4 root root 4096 Feb 23 20:25 standard_cgis
drwxr-xr-x 2 root root 4096 Feb 23 20:25 sv
-rwx------ 1 root root 9389 Feb 23 20:25 uninstall
[root@tracs named]#
regards
brainz
falko
10th March 2007, 13:23
hi till i entered the it in the zonefile field in ispconfig and attempted to restart named from ispconfig and it didnt restart. I also tried to restart it using /etc/init.d/named restart and it gave me this...
There's a problem with your named configuration. What's in /etc/named.conf?
What's in the zonefile field in ISPConfig?
What's the output of ls -la /var/named/chroot/var/named?
brainz
10th March 2007, 22:01
There's a problem with your named configuration. What's in /etc/named.conf?
here is what is in named.conf falko......
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/home/admispconfig/ispconfig/web/multidoc/edit";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "253.229.60.in-addr.arpa" {
type master;
file "pri.253.229.60.in-addr.arpa";
};
zone "domain.com" {
type master;
file "pri.domain.com";
};
zone "domain" {
type slave;
file "sec.domain";
masters { x.x.x.x; };
};
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
here is
What's in the zonefile field in ISPConfig?
falko it was this ....
/home/admispconfig/ispconfig/web/multidoc/edit
and till had me change it to this...
/var/named/chroot/var/named
But i have chaged it back to this...
/home/admispconfig/ispconfig/web/multidoc/edit
What's the output of ls -la /var/named/chroot/var/named?
here is the output falko
[root@tracs named]# ls -la /var/named/chroot/var/named
total 104
drwxr-xr-x 4 root named 4096 Mar 8 21:38 .
drwxrwxr-x 5 root named 4096 Mar 14 2003 ..
lrwxrwxrwx 1 root named 6 Dec 16 15:08 chroot -> ../../
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 198 Mar 9 2006 localdomain.zone
-rw-r----- 1 root named 195 Mar 9 2006 localhost.zone
-rw-r----- 1 root named 427 Mar 9 2006 named.broadcast
-rw-r----- 1 root named 2518 Mar 9 2006 named.ca
-rw-r----- 1 root named 424 Mar 9 2006 named.ip6.local
-rw-r----- 1 root named 426 Mar 9 2006 named.local
-rw-r----- 1 root named 427 Mar 9 2006 named.zero
-rw-r----- 1 root named 795 Mar 8 21:38 pri.253.229.60.in-addr.arpa
-rw-r----- 1 root root 795 Mar 8 21:38 pri.253.229.60.in-addr.arpa~
-rw-r----- 1 root named 948 Feb 23 21:00 pri.domain.com
-rw-r----- 1 root root 1016 Jan 24 00:43 pri.domain.com~
drwxrwx--- 2 named named 4096 Jul 28 2004 slaves
[root@tracs named]#
regards
brainz
falko
11th March 2007, 20:40
falko it was this ....
/home/admispconfig/ispconfig/web/multidoc/editThis is definitely wrong.
and till had me change it to this...
/var/named/chroot/var/named
But i have chaged it back to this...
/home/admispconfig/ispconfig/web/multidoc/edit
Your /var/named folder has wrong permissions. Please run
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
and change the value back to /var/named/chroot/var/named in ISPConfig.
brainz
12th March 2007, 11:18
Hi guys
Thankyou for you assistance i have solved the peoblem and the bind dns is up and running again....
The problem was there was a stray entry in the pri file in i removed it and bang its back up and running.....
You know one of these days i am going to have to get you guys a beer prehaps down at the bevarian bar in sydney along with some sauerkraut to go with it....
Once again thankyou for you help.... Im sure if i mess the server up again in someway i will be back for help...
regards
brainz
brainz
12th March 2007, 13:46
Hi Guys,
I just got a email from root and it says this...
WARNING: service not running (server: domain.com, port: 10000)!
Message generated at March 12, 2007, 22:30.
Just wondering what this meant it seems its the port used for webadmin..
regards
brainz
falko
13th March 2007, 19:42
You can switch off the monitoring for port 10000 in ISPConfig under Management -> Server -> Services -> Monitoring (if you don't have webmin installed or don't want to monitor it).
radim_h
13th March 2007, 19:51
You have to put some site into DNS manager or DNS serverwill not start.. (just after installation of ISPC for example)
rlhesson
25th March 2007, 22:12
I have the same problem as the guy in this thread did, I have tried everything but still get this message
[root@drake named]# /etc/init.d/named restart
Stopping named: [FAILED]
Starting named:
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 changed the Zonefile directory to
/var/named/chroot/var/named
waited 1-2 min and everything but I still get that message.
rlhesson
25th March 2007, 22:16
Fixed it by overwriting the whole directory from a backup
till
25th March 2007, 23:58
I guess that your directory had the wrong permissions and as you overwrote it with your backup, you fixed the permissions too.
rlhesson
26th March 2007, 00:01
Could be, but I redid the permissions following the perfect setup and it still wasnt working.
adriaan
24th June 2007, 12:04
When I change it to: /var/named/chroot/var/named where the same files are as in /home/admispconfig/ispconfig/web/multidoc/edit: ISPConfig automaticly changes to /etc/named and the error is still the same.
Richard87
24th June 2007, 20:34
I am having the same problems, the fix in named.conf gets reverted after a few minutes
adriaan
24th June 2007, 20:56
A very funny thing is that I don't have a /etc/named.conf. Altough the start says I have?!
[root@xara ~]# /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
/etc/named.conf:3: parsing failed
[FAILED]
Richard87
24th June 2007, 21:13
(named is in a chroote'd envirement, wich means named.conf is located at /var/named/chroot/etc/named.conf)
Richard, double check the template files for ISPConfig and make sure it isn't boffed there. Also check the settings in the control panel. Log in as admin, management, server, settings, then click on the DNS tab.
Richard87
25th June 2007, 03:43
Thanks, that worked just fine:D
falko
25th June 2007, 17:40
A very funny thing is that I don't have a /etc/named.conf. Altough the start says I have?!
[root@xara ~]# /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
/etc/named.conf:3: parsing failed
[FAILED]
What's the output of updatedb
locate named.conf?
m1_davidson
23rd July 2007, 17:28
This is the output of my "locate named.conf":
[root@res ~]# locate named.conf
/usr/share/man/man5/named.conf.5.gz
/home/admispconfig/ispconfig/web/multidoc/edit/named.conf
/root/ispconfig/isp/conf/named.conf.master
/var/named/chroot/etc/named.conf
/var/named/chroot/etc/named.conf.rpmsave
/etc/named.conf
/etc/named.conf~
/etc/named.conf.old
/etc/log.d/conf/services/named.conf
And, yes, I'm having this issue too.
falko
24th July 2007, 15:16
What's in /etc/named.conf?
m1_davidson
24th July 2007, 15:30
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
auth-nxdomain no;
I seem to have fixed it though. Thanks a mil for getting back.
roadster
15th August 2007, 18:49
I've also had this issue of Bind failing today with:
/etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found
/etc/named.conf:3: parsing failed
I changed the server setting in ISPConfig from:
/home/admispconfig/ispconfig/web/multidoc/edit
to:
/var/named/chroot/var/named
but still got the error until I noticed that named.conf still had the reference to the original location near the top of the file. Once this was manually changed to the new location everything was fine.
I'm wondering what had caused the issue after 3 months of trouble free operation ..... I had made two system changes today:
i) added 4 additional ip addresses to eth0 + ISPConfig
ii) added a SSL certificate to a site on the 'base' ip address
Thanks to all for an excellent piece of open source software and committed support!
till
15th August 2007, 19:01
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.
roadster
15th August 2007, 19:17
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
till
15th August 2007, 19:19
If it does not had an effect, then the permissions are still wrong. The directory that you enther in ISPConfig must be world readable.
roadster
15th August 2007, 19:42
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.
falko
16th August 2007, 15:36
chkconfig --levels 235 named on
bash: chkconfig: command not foundYour PATH variable seems to be wrong. Try /sbin/chkconfig --levels 235 named on instead.
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.
aceyzeriat
20th August 2007, 01:41
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
till
20th August 2007, 12:01
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/
aceyzeriat
20th August 2007, 12:41
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
till
20th August 2007, 12:48
Please have a look at the perfect setup for your linux distribution and install / configure bind as described there.
aceyzeriat
20th August 2007, 12:51
Where ... :D
?
till
20th August 2007, 12:53
Where ... :D
?
Where you find all official documentation about ISPConfig, on the ispconfig.org documentation page ;)
http://www.ispconfig.org/documentation.htm
aceyzeriat
20th August 2007, 13:01
Thanks Till,
When I find the answer, I'll come back to post it
Thanks and regards,
Arnaud
:)
till
20th August 2007, 13:17
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.
aceyzeriat
20th August 2007, 14:22
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
aceyzeriat
20th August 2007, 21:34
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
:eek: => :( => :D => :cool:
freesqrt
18th October 2008, 11:22
Hi there,
I have the same problem with named service.
what can I do?
Regards,
falko
19th October 2008, 14:24
Any errors in your logs? Which distribution are you using?
freesqrt
19th October 2008, 16:30
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,
m1_davidson
28th May 2009, 11:51
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 :D
m1_davidson
28th May 2009, 15:07
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 :D
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.
falko
29th May 2009, 19:25
Any errors in your mail log?
m1_davidson
31st May 2009, 16:40
Any errors in your mail log?
Hi Falko,
In relation to the issue with mail attachments, this is part of what I get:
May 28 00:02:12 res postfix/smtp[2226]: 9241292877E: to=<ttaller@gmail.com>, relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=113779, delays=113593/0.16/0.37/185, dsn=4.4.2, status=deferred (conversation with mailhost.zen.co.uk[212.23.3.98] timed out while sending message body)
May 28 00:49:06 res postfix/qmgr[2211]: 29568928784: from=<first.last@mydomain.com>, size=1599287, nrcpt=1 (queue active)
May 28 00:49:06 res postfix/qmgr[2211]: 97740928783: from=<first.last@mydomain.com>, size=7619236, nrcpt=1 (queue active)
May 28 00:49:06 res postfix/smtp[3329]: certificate verification failed for mailhost.zen.co.uk: num=19:self signed certificate in certificate chain
May 28 00:49:06 res postfix/smtp[3330]: certificate verification failed for mailhost.zen.co.uk: num=19:self signed certificate in certificate chain
If you require, I can PM my entire maillog file.
Thanks.
falko
1st June 2009, 14:21
May 28 00:02:12 res postfix/smtp[2226]: 9241292877E: to=<ttaller@gmail.com>, relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=113779, delays=113593/0.16/0.37/185, dsn=4.4.2, status=deferred (conversation with mailhost.zen.co.uk[212.23.3.98] timed out while sending message body)This seems to be the problem. I'd try to contact the admin of mailhost.zen.co.uk and ask why the connection times out when oyu send an attachment.
rokx
18th June 2009, 13:47
In my case, ISPConfig wrote changes to named.conf~ and named was loading the named.conf.
So i had to rename named.conf~ to named.conf.
till
18th June 2009, 13:50
The file with the ~ at the end is a backup file, ispconfig is not writing to it. Maybe you updated named and the pacakge installer of your linux distribution made this backup.
rokx
18th June 2009, 14:02
It could be that.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.