Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306789 - When running bind on a nonstandard ip, stop/restart/reload don't work anymore.
Summary: When running bind on a nonstandard ip, stop/restart/reload don't work anymore.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: BIND Maintainers (DISABLED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 10:44 UTC by Allen Parker
Modified: 2010-02-25 19:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.