LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   named - dns - problems (https://www.linuxquestions.org/questions/linux-general-1/named-dns-problems-74529/)

blaci 07-21-2003 06:17 AM

named - dns - problems
 
Hi!

I get an error when i start named:

/var/log/messages:

Jul 21 07:14:11 localhost named[1519]: starting BIND 9.1.3
Jul 21 07:14:11 localhost named[1519]: using 1 CPU
Jul 21 07:14:11 localhost named[1521]: loading configuration from '/etc/named.conf'
Jul 21 07:14:11 localhost named[1521]: the default for the 'auth-nxdomain' option is now 'no'
Jul 21 07:14:11 localhost named[1521]: no IPv6 interfaces found
Jul 21 07:14:11 localhost named[1521]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 21 07:14:11 localhost named[1521]: listening on IPv4 interface eth0, 192.168.0.126#53
Jul 21 07:14:11 localhost named[1521]: listening on IPv4 interface eth1, 192.168.1.4#53
Jul 21 07:14:11 localhost named[1521]: couldn't open pid file '/var/run/named/named.pid': Permission denied



My /var/named.conf:

options {
directory "/var/named";
};

zone "0.0.127.in-addr.arpa"{
type master;
file "pz/127.0.0";
};


My /var/named/127.0.0 :

$TTL 3D
@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
1
8H
2H
4W
1D)
NS ns.linux.bogus.
1 PTR localhost.


Thanks for your answer!

cnjohnson 07-21-2003 10:57 AM

named evidently doesn't have rights to create a file in /var/run/named. Moreover, where is the IP address for your name server (ns.linux.bogus)?

Cheers--
Charles

blaci 07-22-2003 01:32 AM

I solved the problem with the command:

named -gu named


All times are GMT -5. The time now is 01:53 PM.