LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2011, 06:35 PM   #1
wisetech
LQ Newbie
 
Registered: Feb 2011
Location: Germany
Posts: 9

Rep: Reputation: 0
Smile Configuring caching DNS nameserver


i get this error whi trying to configure caching DNS namerver






# rndc start
rndc: connect failed: 127.0.0.1#953: connection refused

# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:17: change directory to '/var/named/chroot' failed: file not found

/etc/named.conf:17: parsing failed
[FAILED

please help
 
Old 02-08-2011, 09:46 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

How about a little more information to go on?

1) What Linux/UNIX distribution are you running? (Included name and version)
2) What DNS caching program are you using? (Include name and version, maybe a URL to it's site)
3) Do you have a "/var/named/chroot" directory? (Because that's what it's complaining about)

Any code output you have should be cut-and-pasted like this;
Quote:
[code]
Your output here.
[/code]
 
Old 02-09-2011, 12:01 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by wisetech View Post
# service named restart
looks like BIND...is that correct?

Quote:
/etc/named.conf:17: change directory to '/var/named/chroot' failed: file not found
Looks like you are trying to chroot. Is that correct? Does the directory exist and are the permissions correct?
 
Old 02-09-2011, 04:28 PM   #4
wisetech
LQ Newbie
 
Registered: Feb 2011
Location: Germany
Posts: 9

Original Poster
Rep: Reputation: 0
I am using
uname -r 2.6.18.194.32.1.el5

Centos 5

the /etc/chroot/named directory is available.

I just installed yum -y install caching-nameserver

i copied /name.caching-nameserver.conf to the /etc/named.conf
i edited the /etc/named.conf

named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1; 192.168.152.190; 192.168.152.2; };
listen-on-v6 port 53 { ::1; };
directory "/var/named/";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";

// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;

allow-query { 127.0.0.1; 192.168.152.190/24; 192.168.0.0/24; };
allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;

Last edited by wisetech; 02-09-2011 at 04:33 PM.
 
Old 02-09-2011, 11:33 PM   #5
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
i edited the /etc/named.conf
Code:
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
Well, there seems to be your problem.
 
Old 02-10-2011, 10:48 AM   #6
wisetech
LQ Newbie
 
Registered: Feb 2011
Location: Germany
Posts: 9

Original Poster
Rep: Reputation: 0
thank let me check it out
 
  


Reply



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
[SOLVED] Configuring a Caching Nameserver ? gardenair Linux - Newbie 7 10-05-2010 05:20 AM
two caching nameserver praveity Linux - Newbie 1 08-31-2008 06:28 AM
how do i setup a caching nameserver in centos 5 yawe_frek Linux - Server 4 02-22-2008 12:37 PM
need help on caching nameserver yawe_frek Linux - Networking 1 12-08-2006 09:35 AM
checklist for caching nameserver masand Linux - Software 1 07-30-2005 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 PM.

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
Open Source Consulting | Domain Registration