Help - Search - Members - Calendar
Full Version: My named.conf is broke
The Planet Forums > Control Panels > Plesk
juanchi
I'm desperate right now, how can I fix this?

[root@sub log]# service named restart
Stopping named: [ OK ]
Starting named: /etc/named.conf:6: change directory to '/var/named' failed: file not found
/etc/named.conf:6: parsing failed

Dec 22 17:40:12.411 starting BIND 9.2.4 -g
Dec 22 17:40:12.411 using 1 CPU
Dec 22 17:40:12.421 loading configuration from '/etc/named.conf'
Dec 22 17:40:12.430 no IPv6 interfaces found
Dec 22 17:40:12.430 listening on IPv4 interface lo, 127.0.0.1#53
Dec 22 17:40:12.431 listening on IPv4 interface eth0, 216.127.70.100#53
Dec 22 17:40:12.432 listening on IPv4 interface eth0:1, 216.127.70.233#53
Dec 22 17:40:12.432 listening on IPv4 interface eth0:2, 216.127.70.234#53
Dec 22 17:40:12.439 command channel listening on 127.0.0.1#953
Dec 22 17:40:12.439 ignoring config file logging statement due to -g option
Dec 22 17:40:12.439 couldn't open pid file '/var/run/named/named.pid': Permission denied
Dec 22 17:40:12.439 exiting (due to early fatal error)
Error in configuration file /etc/named.conf : [FAILED]

Here is my named.conf file:

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

include "/etc/rndc.key";
exo
I think is a problem of named being chrooted, as I posted in your other thread http://forum.ev1servers.net/showthread.php...&threadid=51746
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.