restart named; missing TCP socket

Mark Andrews marka at isc.org
Wed Dec 12 13:36:52 UTC 2012


In message <alpine.LSU.2.00.1212121302270.15409 at hermes-1.csi.cam.ac.uk>, Tony F
inch writes:
> I have had a few instances recently when named has failed to re-open its
> TCP listening socket after a restart. This is particularly likely if I
> try to bounce it quickly with a command line like
> 
> # rndc stop; /etc/rc.d/rc.named start

You need to wait for named to stop

p=`rndc stop -p | awk '{print $2}'`
while kill -0 $p
do
	sleep 1
done
/etc/rc.d/rc.named start
 
> The servers in question are recursive (apart from a few local zones) with
> simple ACLs. (I have had the same problem on servers with less simple
> ACLs too.)
> 
> 	listen-on-v6   { ::1; };
> 	listen-on      { 127.0.0.1; };
> 	allow-query    { localhost; };
> 	allow-transfer { localhost; };
> 
> What do others do to avoid this problem?
> 
> Tony.
> -- 
> f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
> Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6 at first.
> Rough, becoming slight or moderate. Showers, rain at first. Moderate or good,
> occasionally poor at first.
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
>  from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list