LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2007, 06:19 AM   #1
linuxss
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
named restart problem


when i tried to restart named in fedora core6 i got these errors

Locating /var/named/chroot//etc/named.conf failed.
I can't find any configuration file. You can create it by system-config-bind
or install caching-nameserver.

Please help.
 
Old 02-18-2007, 08:08 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
well the answer is straightforward

why don't you get that package installed? or run system-config-bind ?

regards
 
Old 02-22-2007, 12:53 AM   #3
linuxss
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Question

Thanks but there no such command like system-config-bind in my installed fedora core 6.

Then i download the system-config-bind rpm and installed it. But when i run system-config-bind it show nothing.


And there is no /etc/named.conf file ?????? but only /etc/named.caching-nameserver.conf /etc/named.rfc1912.zones.
 
Old 02-22-2007, 01:02 AM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I am assuming you need to start to actually input the configuration in the named.conf file. I know nothing about configuring DNS and I have seen fat books on the subject of setting up DNS. Good luck!
 
Old 02-22-2007, 01:46 AM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you just want your DNS to give you the address of sites, you can link the caching server config to regular named.conf, then try starting again, like this:
Code:
ln -s /etc/named.caching-nameserver.conf /etc/named.conf
Then try restarting bind.

Peace,
JimBass
 
Old 02-25-2007, 04:52 AM   #6
linuxss
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy named.conf

Dear all Linux users,

can anyone tell me whether we have /etc/named.conf file when we install fresh fedora core 6.

I don't see /etc/named.conf file in my fedora server. is this due to some file are corrupted in installation CD.

I have check all "fedora core 6" CD's before installation. Only CD 3 show some iso file error but anyhow i was able to install fedora core 6.


Thanks
 
Old 02-25-2007, 11:40 AM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
First problem is you are using fedora. The people that build rpms can tell the rpm to place the config files anywhere. It may be in /etc/bind/named.conf, it might be in /etc/named/named.conf, and it could still be somewhere else. I would run this command to find it:
Code:
find /etc -name named.conf -print
You can also use the yum package manager to install BIND. The command
Code:
yum install bind
should pull the files off of the internet.

Peace,
JimBass
 
Old 02-25-2007, 09:28 PM   #8
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
If you did a full installation of FC6 then its definitely installed and the main files are usually located in CD1. Also in FC6 the bind packages are by default installed in chroot-environment so the location will be like
/etc/named.conf -> /var/named/chroot/etc/named.conf
/var/named/rndc.key -> /var/named/chroot/etc/rndc.key
/var/named/named.local -> /var/named/chroot/var/named/named.local
... and so on.

Also check whether named service is installed or not by
# ntsysv or,
by running an rpm query like
# rpm -qa | grep bind*
 
Old 02-28-2007, 01:36 AM   #9
linuxss
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
/etc/named.conf file missing

Dear All Linux Users,

I follow the instructions as you have given. Here is the steps as given by tanveer:

1) i gave command ntsysv and check named service --- it is running

2) rpm -qa | grep bind* command shows:

bind-chroot-9.3.2-41.fc6
bind-libs-9.3.2-41.fc6
ypbind-1.19-5
bind-utils-9.3.2-41.fc6
binutils-2.17.50.0.3-6
bind-9.3.2-41.fc6

3)ls -al /etc/named.* command shows:

lrwxrwxrwx 1 root named 52 Feb 22 16:19 /etc/named.caching-nameserver.conf -> /var/named/chroot//etc/named.caching-nameserver.conf
lrwxrwxrwx 1 root named 42 Feb 22 16:19 /etc/named.rfc1912.zones -> /var/named/chroot//etc/named.rfc1912.zones

4)ls -al /var/named/* command shows:
lrwxrwxrwx 1 root named 45 Feb 22 16:19 localdomain.zone -> /var/named/chroot
//var/named/localdomain.zone
lrwxrwxrwx 1 root named 43 Feb 22 16:19 localhost.zone -> /var/named/chroot//
var/named/localhost.zone
lrwxrwxrwx 1 root named 44 Feb 22 16:19 named.broadcast -> /var/named/chroot/
/var/named/named.broadcast
lrwxrwxrwx 1 root named 37 Feb 22 16:19 named.ca -> /var/named/chroot//var/na
med/named.ca
lrwxrwxrwx 1 root named 44 Feb 22 16:19 named.ip6.local -> /var/named/chroot/
/var/named/named.ip6.local
lrwxrwxrwx 1 root named 40 Feb 22 16:19 named.local -> /var/named/chroot//var
/named/named.local
lrwxrwxrwx 1 root named 39 Feb 22 16:19 named.zero -> /var/named/chroot//var/
named/named.zero
/var/named/chroot:
total 40
drwxr-x--- 6 root named 4096 Feb 23 12:40 .
drwxr-x--- 5 root named 4096 Feb 23 12:51 ..
drwxr-x--- 2 root named 4096 Sep 11 14:58 dev
drwxr-x--- 2 root named 4096 Feb 22 16:19 etc
dr-xr-xr-x 150 root root 0 Feb 28 10:50 proc
/var/named/data:
total 16
drwxrwx--- 2 named named 4096 Sep 11 14:58 .
drwxr-x--- 5 root named 4096 Feb 23 12:51 ..

/var/named/slaves:
total 16
drwxrwx--- 2 named named 4096 Sep 11 14:58 .
drwxr-x--- 5 root named 4096 Feb 23 12:51 ..

=============================================================
These steps i followed as given by JimBass

1)i gave command
"find /etc -name named.conf -print" and it shows
"/etc/dbus-1/system.d/named.conf" --- which is not /etc/named.conf file.

2)after "yum install bind", now i have
bind-9.3.4-3.fc6
ypbind-1.19-5
bind-libs-9.3.4-3.fc6
bind-chroot-9.3.4-3.fc6
binutils-2.17.50.0.3-6
bind-utils-9.3.4-3.fc6

but still i do not have /etc/named.conf file.


Please help.

Thanks.
 
Old 10-20-2008, 12:16 AM   #10
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
I am having the same problme, except I use CentOS5. I'm new to BIND, and want to learn the tricks. But all the materials I read mention /etc/named.conf. It doesn't exist on my system after I've installed bind, bind-utils, caching-nameserver, system-config-bind, bind-chroot, bind-devel, bind-libbind-devel, bind-libs and bind-sdb with yum.

can't believe nobody encountered the same problem except us. We need people with expertise to give us a solid advice.


JF

Last edited by jfernandez; 10-20-2008 at 12:17 AM.
 
Old 10-20-2008, 06:02 AM   #11
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 linuxss View Post
bind-chroot-9.3.2-41.fc6
Are you chrooting named? If you are, are filenames will be relative to the chroot base directory and therefore you won't have
/etc/...
but
chrootbase/etc/...

(where chrootbase is the base directory that you have chosen to use as the base directory for the chrooting system)

Quote:
1)i gave command
"find /etc -name named.conf -print" and it shows
"/etc/dbus-1/system.d/named.conf" --- which is not /etc/named.conf file.
...see previous comment..., although, to me (not knowing the ways of a recent fedora release) that dbus-1 bit would seem like an eccentric thing to do.
 
Old 10-20-2008, 11:44 AM   #12
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I believe all the Red Hat family of linuxes (including the Fedora Cores and CentOS) install BIND into a chroot, as mentioned above by salasi. Check
Code:
/var/named/chroot//etc
for the named.* file.

Peace,
JimBass
 
Old 01-04-2009, 03:55 AM   #13
rajesh.kr@quadsel.in
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Hi thi is Rajesh

Pls help to start the named service in linux RHEL5. When i am trying to start with this command(/etc/rc.d/init.d/named start) i am getting this error(Locating /var/named/chroot//etc/named.conf failed
Pls help in this...
Have a good Day..... Rajesh
 
Old 02-26-2009, 10:39 AM   #14
wuhaa
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
Maybe a solution

Hi,

Using: centos5.2 - 2.6.18-92.el5

This chroot setup is suppose to be a security measure. The way its being setup through the yum command (yum install bind) is stupid. It installs no config files (mainly named.conf).

Anyhow, this might help someone out in the future. The following assumes that you are root

Update the locate database on the system (this may take a wile).
Code:
updatedb
Search for the named.conf
Code:
locate named.conf
Output should be similar to:
Code:
/etc/dbus-1/system.d/named.conf
/usr/share/doc/bind-9.3.4/sample/etc/named.conf
/usr/share/logwatch/default.conf/services/named.conf
/usr/share/man/man5/named.conf.5.gz
The second line has a sample named.conf file. So lets use it..
Code:
cp /usr/share/doc/bind-9.3.4/sample/etc/named.conf /var/named/chroot/etc/named.conf
Modify the sample named.conf to your needs
Code:
vi /var/named/chroot/etc/named.conf
Start the named service
Code:
service named start

Security Note: You want to set the proper permissions on the named.conf file once you are done configuring.
 
Old 05-05-2010, 10:55 PM   #15
roflbot
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
this should work

i'm still a noob so i don't know the reason but try this :

yum install caching-nameserver
 
  


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
Why my named doesnt find named.root Yxaaaaaaa Linux - Software 4 01-26-2007 03:48 PM
Do I need to restart Named after making DNS changes? imsam Linux - Networking 7 07-24-2004 01:02 PM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM
Named cache kept through restart or reboot Supp0rtLinux Linux - Networking 2 01-21-2002 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration