Date: Wed, 18 Mar 2009 10:21:09 +1100 From: Mark Andrews <Mark_Andrews@isc.org> To: Squirrel <squirrel@mail.isot.com> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: rndc: connect failed: 127.0.0.1#953: connection refused Message-ID: <200903172321.n2HNL9u8047856@drugs.dv.isc.org> In-Reply-To: Your message of "Tue, 17 Mar 2009 15:40:47 MDT." <a035ff0bce7803787bd454078722a2a9@mail.isot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <a035ff0bce7803787bd454078722a2a9@mail.isot.com>, Squirrel writes:
> 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?
Port 53 is for DNS.
Port 952 is the default port for RNDC.
> rndc: connect failed: 127.0.0.1#953: connection refused
Run "named -4 -S 1024 -c /etc/namedb/named.conf -g" and read the
messages.
> 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"
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903172321.n2HNL9u8047856>
