Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166085 - net-dns/bind reload command for named rc-script doesn't work
Summary: net-dns/bind reload command for named rc-script doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-09 14:54 UTC by Priit Laes (IRC: plaes)
Modified: 2007-06-02 21:07 UTC (History)
0 users

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 Priit Laes (IRC: plaes) 2007-02-09 14:54:28 UTC
This has happening for quite a while (dunno whether it has ever worked or not)

amd@xxx ~ $ sudo /etc/init.d/named reload
 * Reloading named.conf and zone files ...                                [ !! ]

although...
amd@xxx ~ $ sudo /etc/init.d/named restart
 * Stopping named ...                                                     [ ok ]
 * Starting named ...                                                     [ ok ]
Comment 1 Arthur Hagen 2007-02-09 20:11:18 UTC
(In reply to comment #0)
> This has happening for quite a while (dunno whether it has ever worked or not)
> 
> amd@xxx ~ $ sudo /etc/init.d/named reload
>  * Reloading named.conf and zone files ...                                [ !!
> ]

Works as a charm on multiple different machines here.

Is your rndc.key file correct (and referenced correctly in named.conf)?
Try:

rndc -k `source /etc/conf.d/named && echo $CHROOT/etc/bind/rndc.key` reload

If this returns an error, you probably haven't configured the keys or chroot jail correctly.
Comment 2 Priit Laes (IRC: plaes) 2007-02-16 11:07:39 UTC
Ah.. okey, my rndc key was empty...
Anyway, without rndc key the reload stuff doesn't look that good...
Basically it only does:
  /etc/init.d/named restart &>/dev/null
and then exits, without showing any user-visible messages.

[snip]
        if [ -f $KEY ] ; then
                ebegin "Reloading named.conf and zone files"
                rndc -k $KEY reload &>/dev/null
                eend $?
        else /etc/init.d/named restart &>/dev/null
        fi
[/snip]
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2007-06-02 21:07:38 UTC
it's just a misconfiguration,
thanks for reporting.