You are not logged in.

#1 2015-02-26 09:37:33

geekinthesticks
Member
From: England
Registered: 2011-09-21
Posts: 143
Website

[solved] Bind rndc Unknown Option Key.

I am migrating my DNS server from an Ubuntu box to Arch. I am stuck with one problem. In my named.conf I have :

options {
    directory "/var/named";
    pid-file "/run/named/named.pid";
                                                                                                    
    key "rndc-key" {                                                                                                                
        algorithm hmac-md5;                                                                                                         
        secret "gsGrs3RvXMiaFBpwpKB46w==";                                                                                          
    };   

However, bind gives the following error:

Feb 26 09:25:49 firewall named[3290]: loading configuration from '/etc/named.conf'
Feb 26 09:25:49 firewall named[3290]: /etc/named.conf:8: unknown option 'key'

Has the option changed its name in recent versions of bind? Google seems to indicate it should still work.

Solved. The key section must be defined outside the options section.

Last edited by geekinthesticks (2015-02-26 12:26:48)

Offline

Board footer

Powered by FluxBB