bind 9.16_13 - rndc delays
-
PFSense+22.01 and bind 9.16_13 (and earlier) -
System boot and other bind/named related activities can take a long time due to calls to rndc when bind/named is not running - resulting in 60 second rndc timeout. This used to be bearable as an earlier version of rndc had 10 second timeouts. Now that it is 60 seconds.. .woah. slow.
-
/usr/local/pkg/bind.inc calls rndc without checking to see if named is actually running. Twice for each zone. With a timeout of 60 seconds, and 10+ zones, this makes booting really slow.
-
/usr/local/etc/rc.d/named.sh (generated by bind.inc) - "rc_stop()" function does not check bind/named is running before calling rndc. Again, 60 second timeout for each rndc call attempt.
Have tested and worked around by substituting /usr/local/sbin/rndc with a check to see if named is running before calling the original - which alleviates the problem.
/usr/local/sbin/rndc:
#!/bin/sh if [ -n "`/bin/ps auxw | /usr/bin/grep "[n]amed " | /usr/bin/awk '{print $2}'`" ]; then /usr/local/sbin/rndc.orig "$@" fi
(noting - /usr/local/sbin/rndc.orig is the original package rndc binary, moved out of the way.)
Dave.
-
-
-
-
-