Linux - NewbieThis 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
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.
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
# 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...
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.