couldn't open pid file '/var/run/named.pid': Permission denied

Agnello George agnello.dsouza at gmail.com
Thu Nov 15 07:00:56 UTC 2007


> Check if you have /var/run/named/ folder with named:named ownership and
> 770 permissions.
Yes i did check
 ls -la /var/named/chroot/var/run/
total 8
drwxrwx--- 2 named named 4096 2007-11-15 17:33 named

> Also don't forget about other command line parameters like "-u named" or
> "-t /var/named/chroot"

i didnt understand this  ?
i just want to make a small correction : my /etc/name.conf looks like this.


options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
pid-file "/var/run/named/named.pid";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
//==========> do i need to comment out the folloing line since i am using
sql query
//zone "." IN {
// type hint;
// file "named.ca";
//};
//include "/etc/named.rfc1912.zones";

dlz "Mysql zone" {
database "mysql
{host=127.0.0.1 dbname=binddlzdb user=binddlzuser pass=binddlzpassword}
{select zone from records where zone = '%zone%'}
{select ttl, type, mx_priority, case when lower(type)='txt' then
concat('\"', data, '\"')
else data end from records where zone = '%zone%' and host = '%record%'
and not (type = 'SOA' or type = 'NS')}
{select ttl, type, mx_priority, data, resp_contact, serial, refresh, retry,
expire, minimum
from records where zone = '%zone%' and (type = 'SOA' or type='NS')}
{select ttl, type, host, mx_priority, data, resp_contact, serial, refresh,
retry, expire,
minimum from records where zone = '%zone%' and not (type = 'SOA' or type =
'NS')}
{select zone from xfr where zone = '%zone%' and client = '%client%'}
{update data_count set count = count + 1 where zone ='%zone%'}";
};

############################################################



> --
>
> Agnello . G .Dsouza




More information about the bind-users mailing list