LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-23-2009, 11:20 AM   #1
pablo1999
Member
 
Registered: Oct 2007
Posts: 33

Rep: Reputation: 15
Configuring bind-chroot


I'm trying to setup my server to forward dns requests to another server. When I start the named I get the following messages.


Oct 23 10:54:58 myserver named[8006]: starting BIND 9.3.4-P1 -u named -t /var/named/chroot
Oct 23 10:54:58 myserver named[8006]: found 4 CPUs, using 4 worker threads
Oct 23 10:54:58 myserver named[8006]: loading configuration from '/etc/named.conf'
Oct 23 10:54:58 myserver named[8006]: none:0: open: /etc/named.conf: permission denied
Oct 23 10:54:58 myserver named[8006]: loading configuration: permission denied
Oct 23 10:54:58 myserver named[8006]: exiting (due to fatal error)


The named.conf is not inside /etc is inside /var/named/chroot/etc how can I make it look there instead?


Regards,
 
Old 10-23-2009, 11:51 AM   #2
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
Quote:
Originally Posted by pablo1999 View Post
I'm trying to setup my server to forward dns requests to another server. When I start the named I get the following messages.


Oct 23 10:54:58 myserver named[8006]: starting BIND 9.3.4-P1 -u named -t /var/named/chroot
Oct 23 10:54:58 myserver named[8006]: found 4 CPUs, using 4 worker threads
Oct 23 10:54:58 myserver named[8006]: loading configuration from '/etc/named.conf'
Oct 23 10:54:58 myserver named[8006]: none:0: open: /etc/named.conf: permission denied
Oct 23 10:54:58 myserver named[8006]: loading configuration: permission denied
Oct 23 10:54:58 myserver named[8006]: exiting (due to fatal error)


The named.conf is not inside /etc is inside /var/named/chroot/etc how can I make it look there instead?


Regards,
Now a days named.conf is not coming in the /etc/ location. I think you can copy from /var/named/chroot/etc to /etc/ and then

Code:
vi /etc/named.conf

forwarders  { x.x.x.x;  } ;
forward only ;
:wq!
Here x.x.x.x is your main DNS server ip address where you want to forward your request.
Then stop / start named service.... hope this will clear your error.
If not change the ownership to named user.
.....
 
Old 10-23-2009, 01:02 PM   #3
pablo1999
Member
 
Registered: Oct 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the reply but I think the named.conf doesnt have to be under /etc for this purpose. I'm trying to duplicate the configuration of another server which someone else configured and the only named.conf on that server is under /var/named/chroot/etc

The following is the process running on the other server:

[root@other-server named]# ps -aux | grep named
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
named 4974 0.0 0.0 71432 3780 ? Ssl Oct22 0:05 /usr/sbin/named -u named -t /var/named/chroot
root 19875 0.0 0.0 3896 672 pts/1 S+ 13:56 0:00 grep named


When I restart the other named service this is what shows in the log. It saids loading configuration from '/etc/named.conf' but the only named.conf exists under /var/named/chroot/etc

Sep 16 17:36:44 storm named[3737]: starting BIND 9.3.4-P1 -u named -t /var/named/chroot
Sep 16 17:36:44 storm named[3737]: found 4 CPUs, using 4 worker threads
Sep 16 17:36:44 storm named[3737]: loading configuration from '/etc/named.conf'
Sep 16 17:36:44 storm named[3737]: /etc/named.conf:10: option 'fetch-glue' is obsolete
Sep 16 17:36:44 storm named[3737]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 16 17:36:44 storm named[3737]: listening on IPv4 interface eth0, 192.168.1.175#53
Sep 16 17:36:44 storm named[3737]: command channel listening on 127.0.0.1#953
Sep 16 17:36:44 storm named[3737]: command channel listening on ::1#953
Sep 16 17:36:44 storm named[3737]: zone sub1.domain.com/IN/internal: loaded serial 1213969635
Sep 16 17:36:44 storm named[3737]: zone sub2.domain.com/IN/internal: loaded serial 1213969446
Sep 16 17:36:44 storm named[3737]: running
 
Old 10-25-2009, 07:48 PM   #4
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
So i think you should carefully check your startup script on other server, may be you will find the named.conf location change in other box.

Because your newly setup named server is finding named.conf in /etc/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot and bind rickl Linux - General 2 01-12-2011 02:21 PM
bind-chroot problem rahilmaknojia Linux - Server 1 04-22-2008 10:57 AM
log with bind ( chroot ) pk_kala Linux - Server 1 12-07-2007 04:12 AM
Bind chroot problem dementiaa Linux - Software 3 12-26-2004 04:14 AM
Bind 9 - Chroot problems Nauseous Linux - Networking 2 11-01-2003 04:51 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration