Koozali.org: home of the SME Server

How do I restart DNS etc with re-booting

Adam

How do I restart DNS etc with re-booting
« 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

Charlie Brady

Re: How do I restart DNS etc with re-booting
« Reply #1 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

Adam

Re: How do I restart DNS etc with re-booting
« Reply #2 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

Klaus Eckert

Re: How do I restart DNS etc with re-booting
« Reply #3 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

Charlie Brady

Re: How do I restart DNS etc with re-booting
« Reply #4 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