Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Adam on July 20, 2003, 04:43:56 AM

Title: How do I restart DNS etc with re-booting
Post by: Adam on July 20, 2003, 04:43:56 AM
Hi all,

I seem to have a problem with dns when our Gateway machine (not an e-emith) goes down for a period of time. Names can't resolve.

Is it possible to restart the dns side of things without re-booting ?

cheers,

Adam
Title: Re: How do I restart DNS etc with re-booting
Post by: Charlie Brady on July 20, 2003, 04:59:07 AM
Adam wrote:

> Is it possible to restart the dns side of things without
> re-booting ?

killall named

Charlie
Title: Re: How do I restart DNS etc with re-booting
Post by: Adam on July 20, 2003, 05:41:25 AM
Thanks Charlie,

does the killall named do the same as:

etc/init.d/named restart

I found that "etc/init.d/named restart"  seems to restart ok - well at least that's what it says . The killall named command happens very quickly and doesn't tell me if the service was restarted so I wasn't 100% if it was working.

cheers,

Adam
Title: Re: How do I restart DNS etc with re-booting
Post by: Klaus Eckert on July 22, 2003, 01:46:33 AM
do a "ps aux | grep named" bevore killall and after.
so you can see, if it is running again.

cheers klaus
Title: Re: How do I restart DNS etc with re-booting
Post by: Charlie Brady on July 22, 2003, 01:54:57 AM
Adam wrote:

> does the killall named do the same as:
>
> etc/init.d/named restart

No

> I found that "etc/init.d/named restart"  seems to restart ok
> - well at least that's what it says .

Appearance can be deceiving.

> The killall named
> command happens very quickly and doesn't tell me if the
> service was restarted so I wasn't 100% if it was working.

The service will be automatically restarted by the init process.

Charlie