LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2011, 11:55 PM   #1
toypatrick
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
Unable to Install Bind In Redhat 5.6


I have installated and configured Bind...But when i restart the named service ,I am getting the following error...

31 14:29:16 Server avahi-daemon[2440]: Server startup complete. Host name is Server.local. Local service cookie is 1560939195.
Mar 31 14:29:46 Server named: /etc/named.conf:3: change directory to '/var/lib/named' failed: file not found
Mar 31 14:29:46 Server named:
Mar 31 14:29:46 Server named: /etc/named.conf:3: parsing failed
Mar 31 14:42:34 Server named: /etc/named.conf:3: change directory to '/var/lib/named' failed: file not found
Mar 31 14:42:34 Server named:
Mar 31 14:42:34 Server named: /etc/named.conf:3: parsing failed


My named.conf configuration file


options {

directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";

# The forwarders record contains a list of servers to which queries
# should be forwarded. Up to three servers may be listed.

forwarders { 62.31.176.39 ; 193.38.113.3; };

# Enable the next entry to prefer usage of the name server declared in
# the forwarders section.

#forward first;

listen-on-v6 { any; };

# If notify is set to yes (default), notify messages are sent to other
# name servers when the zone data is changed. Instead of setting
# a global 'notify' statement in the 'options' section, a separate
# 'notify' can be added to each zone definition.

notify no;
};

# The following zone definitions don't need any modification. The first one
# is the definition of the root name servers. The second one defines
# localhost while the third defines the reverse lookup for localhost.

#zone "." in {
#type hint;
#file "root.hint";
};

#zone "localhost" in {
#type master;
#file "localhost.zone";
};

#zone "0.0.127.in-addr.arpa" in {
#type master;
#file "127.0.0.zone";
};

zone "test.com.in-addr.arpa" in {
type master;
file "frwd.zone";
allow update {none;};
};

zone "22.168.192.in-addr.arpa" in {
type master;
file "rev.zone";
allow update {none;};
};

And also i have configured forward snd reverse zone


Guys can you let me know where iam i gone wrong...
 
Old 03-31-2011, 01:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,523

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Quote:
Mar 31 14:29:46 Server named: /etc/named.conf:3: change directory to '/var/lib/named' failed: file not found
How did you installed bind? Does the directory /var/lib/named exist?
Note that if you're trying to run named chrooted to some directory (e.g. /var/named), then the actual directory to look for is /var/named/var/lib/named.
 
Old 03-31-2011, 02:17 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Actually see http://www.linuxtopia.org/online_boo...5_ch-bind.html
Quote:
If you have installed the bind-chroot package, the BIND service will run in the /var/named/chroot environment. All configuration files will be moved there. As such, named.conf will be located in /var/named/chroot/etc/named.conf, and so on.
 
Old 04-02-2011, 01:15 AM   #4
toypatrick
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks For the reply...

I have pre-installated Bind at the time of installtion of operating System, and I am unable to find the named.conf files in /var/named/chroot/etc/named.conf and also in var/lib

there is no named.conf files.
 
Old 04-02-2011, 05:04 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,523

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Hi,

The /etc/named.conf is not installed during bind installation. You can use a sample from /usr/share/doc/bind-9.3.3/sample/etc/named.conf.
Have a look at this this post for more details

Regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
help me to install bind server on Redhat 5 sach Linux - Server 3 04-27-2010 02:10 AM
redhat 7.0 unable to install need help eboy98 Red Hat 4 06-10-2009 02:39 AM
Unable to install REDHAT 9 Marius@Marius Red Hat 1 10-29-2005 08:56 PM
Unable to install Redhat 9.0 m.parthiban Red Hat 1 10-15-2005 04:30 AM
Install Bind on Redhat 9 Error glensal Linux - Networking 1 07-10-2003 04:30 AM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration