Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 306789

Summary: When running bind on a nonstandard ip, stop/restart/reload don't work anymore.
Product: Gentoo Linux Reporter: Allen Parker <infowolfe>
Component: New packagesAssignee: BIND Maintainers (DISABLED) <bind+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: robbat2
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Allen Parker 2010-02-25 10:44:08 UTC
Patch:

diff -Nur before/named.confd-r3 after/named.confd-r3
--- before/named.confd-r3       2010-02-25 02:37:49.000000000 -0800
+++ after/named.confd-r3        2010-02-25 02:37:49.000000000 -0800
@@ -6,6 +6,9 @@
 # Leave this unchanged if you want bind to automatically detect the number
 #CPU="1"
 
+# RNDC needs to be told what server we're using sometimes.
+#SERVER="-s 127.0.0.1"
+
 # If you wish to run bind in a chroot, run:
 # emerge --config =<bind-version>
 # and un-comment the following line.
diff -Nur before/named.init-r7 after/named.init-r7
--- before/named.init-r7        2010-02-25 02:37:49.000000000 -0800
+++ after/named.init-r7 2010-02-25 02:37:49.000000000 -0800
@@ -95,7 +95,7 @@
        ebegin "Stopping ${CHROOT:+chrooted }named"
        checkconfig || return 2
        if [ -f $KEY ] ; then
-               rndc -k $KEY stop &>/dev/null
+               rndc $SERVER -k $KEY stop &>/dev/null
        else
                start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                        --exec /usr/sbin/named -- stop
@@ -133,7 +133,7 @@
 
        if [ -f $KEY ] ; then
                ebegin "Reloading named.conf and zone files"
-               rndc -k $KEY reload &>/dev/null
+               rndc $SERVER -k $KEY reload &>/dev/null
                eend $?
        else /etc/init.d/named restart &>/dev/null
        fi
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-02-25 19:03:39 UTC
Applied. No revbump since it's quite obscure.