Linux - SoftwareThis 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
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 need to change the database directory for my zone files from default /var/named .For example forward lookup files should be placed in some other directory like /var/named/fwd and reverse lookup files in some other directory /var/named/rev ,and few critical domains file in seperate directory like /var/named/critical .
Leave the directory option as is in your named.conf, e.g
Code:
directory "/var/named";
and then in your zones definition do something like:
Code:
zone "A" {
type master;
file "fwd/A.zone";
};
zone "A.rev" {
type master;
file "rev/A.zone";
};
zone "criticalA" {
type master;
file "critical/criticalA";
This time i am trying to seperate all the zone definations from named.conf.For example all the forward lookup zones definations should be in the
/etc/zonedef/zones.def
All the reverse lookup defination in
/etc/zonedef/rev.def
All the customer related zonedef in
/etc/zonedef/customer.def
I am trying to do this by placing following lines in named.conf
include "/etc/zonedef/zones.def";
include "/etc/zonedef/rev.def";
include "/etc/zonedef/customer.def";
But when i start the service i get following error
[root@localhost etc]# service named start
Starting named: /etc/named.conf:26: open: /etc/zonedef/zones.def: file not found
Nov 26 22:02:18.790 starting BIND 9.2.4 -g
Nov 26 22:02:18.791 using 1 CPU
Nov 26 22:02:18.796 loading configuration from '/etc/named.conf'
Nov 26 22:02:18.797 listening on IPv4 interface lo, 127.0.0.1#53
Nov 26 22:02:18.798 listening on IPv4 interface eth0, 172.16.1.200#53
Nov 26 22:02:18.802 command channel listening on 127.0.0.1#953
Nov 26 22:02:18.802 ignoring config file logging statement due to -g option
Nov 26 22:02:18.803 couldn't open pid file '/var/run/named/named.pid': Permission denied
Nov 26 22:02:18.803 exiting (due to early fatal error)
Error in configuration file /etc/named.conf : [FAILED]
Although the file zones.def is there at the specified location.I even change the owner ship of the file to named:named ,even change the permision to 777 but no use.
As soon as i comment out the last three lines of
I search this error on the web allot.After that i found when i run the cmd
#named -u named
Bind start working but due to it i have to place my zone files in /var/named instead of /var/named/chroot/var/named.Which means it runs bind out of chroot jail.Thats not good .I have to run it in chroot. Any clue
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Do you understand what chroot does? It changes where / is for that process. If named is chroot'd into /var/named, it can't get to /etc. /var/named/etc is the new /etc. You need to put your include files in /var/named/etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.