[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DINB 9: rcnd: connection refused



On Wed, 2004-02-11 at 23:55, Joost Witteveen wrote:
> In article <[🔎] 1076501381.576.13.camel@funburst.smooth.bom>, Phillipus Gunawan wrote:
> > 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
> 
> The magic is in /etc/bind/rndc.conf (and the corresponding key
> in /etc/bind/named.conf).
> 
> Create the magic using rndc-confgen.
> 
I did, I create rndc.conf and rndc-key, but still, got the same error.
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...

> In my case, lwresd was somehow installed, and messing up the
> communication. Removing lwresd (and kill-ing the process that
> stayed on even after I removed the package) solved it.
> 
how to check whether the lwresd is runing on my box? and how to kill it?

> Oh, and after you've setup rndc.conf and named.conf, you need
> to kill named once manually, so that it re-reads the named.conf
> information.
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.



Reply to: