Re: FC5: Incorrect rndc.key from bind-package?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-03-23 at 23:45 +0100, Stefan Neufeind wrote:
> Hi,
> 
> upon upgrading from a working FC4 to FC5 I encountered that named
> wouldn't start up anymore because of an incorrect /etc/rndc.key.
> 
> It contained:
> 
> # cat /etc/rndc.key
> key "rndckey" {
>         algorithm       hmac-md5;
>         secret "@KEY@";
> };
> 
> which belonged to
> 
> # rpm -qf /etc/rndc.key
> bind-9.3.2-12.FC5
> 
> Has somebody else seen something like this? Does somebody know if the
> install-scripts should replace @KEY@ with a random-key?

This snippet from the bind %postinstall should take care of it:

        if /bin/egrep -q '@KEY@' /etc/rndc.key; then
           /bin/sed -i -e
"s^@KEY@^`/usr/sbin/dns-keygen`^" /etc/rndc.key ;
           chmod 0640  /etc/rndc.key
           chown root:named /etc/rndc.key
        fi

-- 
David Hollis <dhollis@xxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux