Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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!
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:
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
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*
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
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.
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.
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.