Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    bind 9.16_13 - rndc delays

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 881 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      davetick
      last edited by

      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.

      1 Reply Last reply Reply Quote 1
      • D dld_r00f referenced this topic on
      • D dld_r00f referenced this topic on
      • D dld_r00f referenced this topic on
      • D davetick referenced this topic on
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.