starting namd

2009-03-11 Thread Chris
I've just recently upgraded from Mandrake 10.1 to Mandriva 2009. I had
it running great before the upgrade. Tonight I installed BIND 9.5.0-P2
via rpm and can't get it to start for some reason. named-checkconf gives
me no errors and neither does named-checkconf -z. 

[r...@localhost ~]# named-checkconf -z
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: 
loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42

Here's a portion of my /etc/named.conf:

// secret must be the same as in /etc/rndc.conf
include /var/lib/named/etc/rndc.key;

key rndc-key {
   algorithm hmac-md5;
   secret ;
 };

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { mykey; };
};

// Access lists (ACL's) should be defined here
include /var/lib/named/etc/bogon_acl.conf;
include /var/lib/named/etc/trusted_networks_acl.conf;

// Define logging channels
include /var/lib/named/etc/logging.conf;

options {
version ;
directory /var/lib/named;
dump-file /var/tmp/named_dump.db;
pid-file /var/run/named.pid;
statistics-file /var/tmp/named.stats;
zone-statistics yes;
//datasize 256M;
coresize 100M; 
//fetch-glue no;
//recursion no;
//recursive-clients 1;
auth-nxdomain yes;
query-source address * port *;
listen-on port 53 { any; };
cleaning-interval 120;
transfers-in 20;
transfers-per-ns 2;
lame-ttl 0;
max-ncache-ttl 10800;

When stopping named, though I know it's not running I get:

[r...@localhost ~]# service named stop
Stopping named: rndc: connect failed: 127.0.0.1#953: connection refused
[FAILED]

All I see when trying to start it is [FAILED]

I have port 953 tcp and udp allowed in my firewall. I'm sure whatever
I'm doing wrong is stupid and simple but I can't seem to find it. Any
help would be appreciated.

Thanks
Chris

-- 
KeyID 0xE372A7DA98E6705C



signature.asc
Description: This is a digitally signed message part
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: starting namd

2009-03-11 Thread Chris
On Wed, 2009-03-11 at 21:29 -0500, Chris wrote:
 I've just recently upgraded from Mandrake 10.1 to Mandriva 2009. I had
 it running great before the upgrade. Tonight I installed BIND 9.5.0-P2
 via rpm and can't get it to start for some reason. named-checkconf gives
 me no errors and neither does named-checkconf -z. 
 
Adding a bit to this, syslog shows:

Mar 11 21:43:02 localhost named[7290]: starting BIND 9.5.0-P2 -u named
-t /var/lib/named
Mar 11 21:43:02 localhost named[7290]: found 1 CPU, using 1 worker
thread
Mar 11 21:43:02 localhost named[7290]: loading configuration from
'/etc/named.conf'
Mar 11 21:43:02 localhost named[7290]: /etc/named.conf:9:
open: /var/lib/named/etc/rndc.key: file not found
Mar 11 21:43:02 localhost named[7290]: loading configuration: file not
found
Mar 11 21:43:02 localhost named[7290]: exiting (due to fatal error)

The file is there:

[r...@localhost etc]# cd /var/lib/named/etc
[r...@localhost etc]# ls -l
total 36
-rw-r--r-- 1 root root  1966 2009-02-15 05:18 bogon_acl.conf
-rw-r--r-- 1 root root   116 2009-03-11 21:46 hosts
-rw-r--r-- 1 root root  3543 2009-03-11 21:47 localtime
-rw-r--r-- 1 root root  2123 2009-02-15 05:18 logging.conf
-rw-r--r-- 1 root root  4094 2009-03-11 21:09 named.conf
-rw-r--r-- 1 root named  350 2009-03-11 21:01 rndc.conf
-rw-r--r-- 1 root named  259 2009-03-11 20:22 rndc.key
-rw-r--r-- 1 root root   627 2009-02-15 05:18 trusted_networks_acl.conf

Don't know what the problem is


-- 
KeyID 0xE372A7DA98E6705C



signature.asc
Description: This is a digitally signed message part
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: starting namd

2009-03-11 Thread Mark Andrews

In message 1236826414.19160.23.ca...@localhost.localdomain, Chris writes:
 
 --===4107670139043331750==
 Content-Type: multipart/signed; micalg=pgp-sha1;
   protocol=application/pgp-signature;
   boundary==-lXNGXJD0JCnKOzRI/kAz
 
 
 --=-lXNGXJD0JCnKOzRI/kAz
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, 2009-03-11 at 21:29 -0500, Chris wrote:
  I've just recently upgraded from Mandrake 10.1 to Mandriva 2009. I had
  it running great before the upgrade. Tonight I installed BIND 9.5.0-P2
  via rpm and can't get it to start for some reason. named-checkconf gives
  me no errors and neither does named-checkconf -z.=20
 =20
 Adding a bit to this, syslog shows:
 
 Mar 11 21:43:02 localhost named[7290]: starting BIND 9.5.0-P2 -u named
 -t /var/lib/named
 Mar 11 21:43:02 localhost named[7290]: found 1 CPU, using 1 worker
 thread
 Mar 11 21:43:02 localhost named[7290]: loading configuration from
 '/etc/named.conf'
 Mar 11 21:43:02 localhost named[7290]: /etc/named.conf:9:
 open: /var/lib/named/etc/rndc.key: file not found
 Mar 11 21:43:02 localhost named[7290]: loading configuration: file not
 found
 Mar 11 21:43:02 localhost named[7290]: exiting (due to fatal error)
 
 The file is there:
 
 [r...@localhost etc]# cd /var/lib/named/etc
 [r...@localhost etc]# ls -l
 total 36
 -rw-r--r-- 1 root root  1966 2009-02-15 05:18 bogon_acl.conf
 -rw-r--r-- 1 root root   116 2009-03-11 21:46 hosts
 -rw-r--r-- 1 root root  3543 2009-03-11 21:47 localtime
 -rw-r--r-- 1 root root  2123 2009-02-15 05:18 logging.conf
 -rw-r--r-- 1 root root  4094 2009-03-11 21:09 named.conf
 -rw-r--r-- 1 root named  350 2009-03-11 21:01 rndc.conf
 -rw-r--r-- 1 root named  259 2009-03-11 20:22 rndc.key
 -rw-r--r-- 1 root root   627 2009-02-15 05:18 trusted_networks_acl.conf

Named is looking for /var/lib/named/var/lib/named/etc/rndc.key.
You arn't taking into account the choot() call.

Mark

 Don't know what the problem is
 
 
 --=20
 KeyID 0xE372A7DA98E6705C
 
 
 --=-lXNGXJD0JCnKOzRI/kAz
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 
 iEYEABECAAYFAkm4eS4ACgkQ43Kn2pjmcFyusACgicHa7SRFgrN+jvUO+10JKuVa
 fbsAoIuIA4WDGw8+ZrM4E/gHS8km50Nb
 =b8pW
 -END PGP SIGNATURE-
 
 --=-lXNGXJD0JCnKOzRI/kAz--
 
 
 --===4107670139043331750==
 Content-Type: text/plain; charset=us-ascii
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 ___
 bind-users mailing list
 bind-users@lists.isc.org
 https://lists.isc.org/mailman/listinfo/bind-users
 --===4107670139043331750==--
 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: mark_andr...@isc.org
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users