#1  
Old 22nd May 2008, 12:10
mufasa mufasa is offline
Member
 
Join Date: Dec 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Named Problem

I have searched and searched for a solution to my problem but cannot seem to find an answer, can anyone please help me with this:

Using Fedora 7

When Trying to start the service named I get:

Quote:
[root@host ~]# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:3: change directory to '/var/named/chroot/var/named' failed: file not found

/etc/named.conf:3: parsing failed
[FAILED]
I have followed the perfect server setup for bind to the letter numerous times:

Quote:
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
Still get the same error!

My DNS settings on ispconfig are:

BIND User: named
BIND Group: named

Named.conf : /var/named/chroot/var/named/
Zonefiles Dir: /var/named/chroot/var/named/

The Output of ls -la /var/named/chroot/var/named is:

Quote:
total 40
drwxrwxr-x 5 named named 4096 2008-05-22 07:19 .
drwxrwxr-x 6 root named 4096 2008-05-22 07:19 ..
lrwxrwxrwx 1 root root 12 2007-12-15 20:50 chroot -> ../../chroot
drwxrwx--- 2 named named 4096 2007-12-16 08:26 data
drwxrwx--- 2 named named 4096 2007-06-05 12:10 dynamic
-rw-r----- 1 root named 2518 2006-03-07 06:25 named.ca
-rw-r----- 1 root named 129 2007-06-21 12:09 named.empty
-rw-r--r-- 1 root root 256 2007-12-17 18:30 named.local
-rw-r----- 1 root named 152 2007-06-21 12:09 named.localhost
-rw-r----- 1 root named 145 2007-06-21 12:09 named.loopback
drwxrwx--- 2 named named 4096 2004-07-27 16:57 slaves
Can anyone please give me some advice on this as I am now stuck!

Any help will be greatly appreciated

Thank-you

John
Reply With Quote
Sponsored Links
  #2  
Old 23rd May 2008, 12:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you disable SELinux?
__________________
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
  #3  
Old 23rd May 2008, 12:40
mufasa mufasa is offline
Member
 
Join Date: Dec 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko

Yes SELinux is disabled

Thanks

John
Reply With Quote
  #4  
Old 24th May 2008, 12:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/named.conf?

What are the outputs of
Code:
ls -la /var/named/chroot/var/named
and
Code:
chroot /var/named/chroot
ls -la /var/named/chroot/var/named
?
__________________
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
  #5  
Old 24th May 2008, 18:07
mufasa mufasa is offline
Member
 
Join Date: Dec 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko

Thanks for the reply

I cannot find a file called named.conf in /etc/

Here are the other results:

Quote:
[root@host ~]# ls -la /var/named/chroot/var/named
total 44
drwxrwxr-x 5 named named 4096 2008-05-22 18:53 .
drwxrwxr-x 6 root named 4096 2008-05-22 07:19 ..
lrwxrwxrwx 1 root root 12 2007-12-15 20:50 chroot -> ../../chroot
drwxrwx--- 2 named named 4096 2007-12-16 08:26 data
drwxrwx--- 2 named named 4096 2007-06-05 12:10 dynamic
-rw-r----- 1 root named 2518 2006-03-07 06:25 named.ca
-rw-r--r-- 1 named named 949 2008-05-22 06:24 named.conf
-rw-r----- 1 root named 129 2007-06-21 12:09 named.empty
-rw-r--r-- 1 root root 256 2007-12-17 18:30 named.local
-rw-r----- 1 root named 152 2007-06-21 12:09 named.localhost
-rw-r----- 1 root named 145 2007-06-21 12:09 named.loopback
drwxrwx--- 2 named named 4096 2004-07-27 16:57 slaves
and

[QUOTE][root@host ~]# chroot /var/named/chroot
chroot: cannot run command `/bin/bash': No such file or directory

Hope I have done this correctly and hope it helps

Thanks for the help

John
Reply With Quote
  #6  
Old 25th May 2008, 13:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /var/named/chroot/etc/named.conf?
__________________
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
  #7  
Old 25th May 2008, 17:19
mufasa mufasa is offline
Member
 
Join Date: Dec 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
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 "1.10.10.in-addr.arpa" {
type master;
file "pri.1.10.10.in-addr.arpa";
};


zone "mysite.com" {
type master;
file "pri.mysite.com";
};
Thanks

John
Reply With Quote
  #8  
Old 26th May 2008, 15:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you post the outputs of
Code:
ls -la /var/named/
ls -la /var/named/chroot/
ls -la /var/named/chroot/var/
ls -la /var/named/chroot/var/named
?
__________________
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
  #9  
Old 26th May 2008, 16:01
mufasa mufasa is offline
Member
 
Join Date: Dec 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
[root@host ~]# ls -la /var/named/
total 28
drwxr-xr-x 6 root named 4096 2007-12-15 14:06 .
drwxr-xr-x 25 root root 4096 2007-12-16 10:24 ..
drwxrwxr-x 6 root named 4096 2007-12-15 20:50 chroot
drwxrwx--- 2 named named 4096 2007-11-29 10:36 data
drwxrwx--- 2 named named 4096 2007-11-29 10:36 dynamic
lrwxrwxrwx 1 root named 37 2007-12-15 14:06 named.ca -> /var/named/chroot//var/named/named.ca
lrwxrwxrwx 1 root named 40 2007-12-15 14:06 named.empty -> /var/named/chroot//var/named/named.empty
lrwxrwxrwx 1 root named 44 2007-12-15 14:06 named.localhost -> /var/named/chroot//var/named/named.localhost
lrwxrwxrwx 1 root named 43 2007-12-15 14:06 named.loopback -> /var/named/chroot//var/named/named.loopback
drwxrwx--- 2 named named 4096 2007-11-29 10:36 slaves
Quote:
[root@host ~]# ls -la /var/named/chroot/
total 20
drwxrwxr-x 6 root named 4096 2007-12-15 20:50 .
drwxr-xr-x 6 root named 4096 2007-12-15 14:06 ..
drwxr-x--- 2 root named 4096 2007-12-15 14:06 dev
drwxr-x--- 2 root named 4096 2008-05-26 15:48 etc
dr-xr-xr-x 218 root root 0 2008-05-24 10:37 proc
drwxrwxr-x 6 root named 4096 2008-05-22 07:19 var
[root@host ~]#
Quote:
[root@host ~]# ls -la /var/named/chroot/var/
total 32
drwxrwxr-x 6 root named 4096 2008-05-22 07:19 .
drwxrwxr-x 6 root named 4096 2007-12-15 20:50 ..
drwxrwxr-x 5 named named 4096 2008-05-22 18:53 named
drwxr-xr-x 5 named named 4096 2008-05-22 07:19 named~
-rw-r--r-- 1 named named 949 2008-05-22 06:24 named.conf
-rw-r--r-- 1 named named 1232 2008-05-22 06:24 named.conf~
drwxrwxr-x 4 root named 4096 2007-12-15 20:50 run
drwxrwx--- 2 named named 4096 2003-03-14 01:22 tmp
[root@host ~]#
Quote:
[root@host ~]# ls -la /var/named/chroot/var/named/
total 44
drwxrwxr-x 5 named named 4096 2008-05-22 18:53 .
drwxrwxr-x 6 root named 4096 2008-05-22 07:19 ..
lrwxrwxrwx 1 root root 12 2007-12-15 20:50 chroot -> ../../chroot
drwxrwx--- 2 named named 4096 2007-12-16 08:26 data
drwxrwx--- 2 named named 4096 2007-06-05 12:10 dynamic
-rw-r----- 1 root named 2518 2006-03-07 06:25 named.ca
-rw-r--r-- 1 named named 949 2008-05-22 06:24 named.conf
-rw-r----- 1 root named 129 2007-06-21 12:09 named.empty
-rw-r--r-- 1 root root 256 2007-12-17 18:30 named.local
-rw-r----- 1 root named 152 2007-06-21 12:09 named.localhost
-rw-r----- 1 root named 145 2007-06-21 12:09 named.loopback
drwxrwx--- 2 named named 4096 2004-07-27 16:57 slaves
Thanks for the help

John
Reply With Quote
  #10  
Old 27th May 2008, 17:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Everything's looking ok. I'm not sure where the error is...
__________________
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
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
named problem mufasa Installation/Configuration 0 22nd May 2008 07:40
dns server error Hellbound General 7 2nd August 2007 09:18
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error Hellbound General 4 7th January 2007 11:50
DNS: Multiple IPs, want to setup a "private" nameserver on each IP for resellers bpmee Server Operation 8 17th September 2006 09:35
BIND broke adamluz Installation/Configuration 4 2nd June 2006 21:31


All times are GMT +2. The time now is 17:30.


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