If you search the slug archive you will find the answer to this question.
I had the same problem some time ago and posted the solution. Sorry, can't
remember what the title was but it would certainly have had something
about BIND in it ;-)

David.

PS: Just did a google for "rndc: connect failed: connection refused slug"
and low and behold, there it is! So it's true... google really IS your
friend.




On Thu, 12 Feb 2004, Phillipus Gunawan wrote:

> Date: Thu, 12 Feb 2004 20:17:38 +1100
> From: Phillipus Gunawan <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [SLUG] Bind9: Questions......
>
> Hi there,
>
> I am setting up a BIND for my local network (anydomain.bom) acessible
> only for local domain. This is the second time I build BIND, my old
> Debian crashed after I accidently unplug one of my hdd-ide cable (there
> are 3 hdd(s) ) and Debian kernel starting panic...
>
> When I start Bind from '/etc/init.d/bind9 start', everything looks fine,
> like nothing wrong. But I found out that Bind acctually not working
> properly. /etc/init.d/bind9 reload/restart will give this error message:
>
> Stopping domain name service: named
> rndc: connect failed: connection refused
>
> I set up bind with chroot jail. I followed a doc which I used to build
> my Bind (and it works fine)
>
> Folders and files are stored at /chroot/bind/etc/named. And start from
> folder chroot/bind, everything is owned by user named:named. I create
> the rndc key by /usr/local/bind/sbin/rndc-confgen -a. And the rndc.key
> is also owned by named:named. I did create rndc.conf and also putting
> the right lines within named.conf for the value of rndc.key
>
> Is this 'connetion refused' error coused by uninstalling Bind9 from
> dselect and re-compile the source code? That is what I did with my Bind
> after all. Or it might because the folders and files are owned by named?
>
> I did uninstall/remove the bind9 package from Debian and recompile the
> Bind9 from beggining.
>
> I heard that 'lwred' somewhat can block BIND to run properly, how to
> check whether the lwresd is runing on my box? and how to kill it if it's
> necessary?
>
> I checked with 'ps aux' but nothing with 'named' on the list, so I guess
> named is not running after all.
>
> I start '/etc/init.d/bind9 start', everything looks normal, but when I
> 'ps aux' no named/bind system running.
>
> The doco suggest that I add /usr/local/bind/bin to LOCAL_PATH and
> /usr/local/bind/man to LOCAL_MAN in /etc/profile (and I export it) but
> nothing in my system can run /usr/local/bind/bin files. What happen
> here? Am I make mistake in Debian (that not suppose in /etc/profile?)
>
> I missed two files: /var/run/named.pid and /var/run/named.stats. can I
> create these files manually (touch) and chown it as named:named? Will
> this method works?
>
> Thanks.
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to