From owner-freebsd-stable@FreeBSD.ORG Tue Mar 17 22:35:53 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A28B106564A for ; Tue, 17 Mar 2009 22:35:53 +0000 (UTC) (envelope-from squirrel@mail.isot.com) Received: from mail.isot.com (mail.isot.com [66.187.86.1]) by mx1.freebsd.org (Postfix) with ESMTP id 5123B8FC0C for ; Tue, 17 Mar 2009 22:35:52 +0000 (UTC) (envelope-from squirrel@mail.isot.com) Received: from localhost ([127.0.0.1]) by mail.isot.com (ISOT) with SMTP id YZA20353 for ; Tue, 17 Mar 2009 16:35:53 -0600 Date: Tue, 17 Mar 2009 16:35:53 -0600 From: Squirrel To: freebsd-stable Message-ID: X-Mailer: ISOT Web Mail 5.6.1 X-Originating-IP: 66.187.95.74 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: rndc: connect failed: 127.0.0.1#953: connection refused X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 22:35:53 -0000 Will, just for heck of it, I've changed the default ports to 953 on both named.conf and rndc.conf, but still same error. -----Original message----- From: Squirrel squirrel@mail.isot.com Date: Tue, 17 Mar 2009 22:41:26 -0600 To: freebsd-stable freebsd-stable@freebsd.org Subject: rndc: connect failed: 127.0.0.1#953: connection refused > My BIND9.6.0 on FreeBSD 6.2 works fine when I manually start with: > > root@ns2# named -4 -S 1024 -c /etc/namedb/named.conf > > But it won't start on boot and no error messages or log. And it won't start using rndc, it cause error message. Why does the error shows port 953 when I specified for port 53 in the config? > > rndc: connect failed: 127.0.0.1#953: connection refused > > > Below are parts of my configs: > > /etc/rc.conf: > named_enable="YES" > named_flags="-4 -S 1024 -c /etc/namedb/named.conf" > .... > > /etc/rndc.key: > key "rndc-key" { > algorithm hmac-md5; > secret "y9eca/WZydNfi......................."; > }; > > /etc/namedb/rndc.conf: > include "/etc/namedb/rndc.key"; > options { > default-server localhost; > default-key "rndc-key"; > }; > server localhost { > key "rndc-key"; > }; > ... > > /etc/namedb/named.conf: > include "/etc/namedb/rndc.key"; > acl internals { > aa.bb.cc.0/20; > 192.168.1.0/24; > 127.0.0.0/8; > }; > controls { > inet 127.0.0.1 port 53 allow { 127.0.0.1; } keys { rndc-key; }; > }; > options { > pid-file "/var/run/named.pid"; > directory "/etc/namedb"; > statistics-file "/var/log/named/named.stats"; > dump-file "/var/log/named/named.dump"; > zone-statistics yes; > allow-query { 127.0.0.1; 66.187.80.0/20; }; > }; > logging { > category "default" { simple_log; }; > channel simple_log { > file "/var/log/named/named.log" versions 5 size 20m; > severity warning; > print-time yes; > print-category yes; > print-severity yes; > }; > ... > > > ----------------------- > PCShare.Com > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >