Problem running bind on freebsd

Joe Kattner joe.kattner at adelphia.com
Thu Mar 28 16:13:15 UTC 2002


Hans,

You are missing a semicolon:

controls {
	inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }
};

should be:

controls {
	inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};

#named-checkconf /etc/named.conf
/etc/named.conf:6: syntax error near ';'
#echo $?
1

I don't see how named-checkconf missed that on your box.

--Joe


-----Original Message-----
From: Hans Wouters [mailto:hans.wouters at belbone.net]
Sent: Thursday, March 28, 2002 3:23 AM
To: comp-protocols-dns-bind at isc.org
Subject: Problem running bind on freebsd



Hi all,

I've got a problem running bind on freebsd.

This is my named.conf

 key "rndc-key" {
       algorithm hmac-md5;
       secret "b2n4rL4e32p1LJlj4ORUVA==";
 };

controls {
       inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }
};
options {
        directory "/etc/namedb";
...


This is my rndc.conf

key "rndc-key" {
        algorithm hmac-md5;
        secret "b2n4rL4e32p1LJlj4ORUVA==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};


Each time I start named I get the followin syslog entries.

Mar 28 08:57:29 test named[14088]: /etc/namedb/named.conf:17: syntax error
near keys
Mar 28 08:57:29 test named[14088]: /etc/namedb/named.conf:18: syntax error
near '}

These are the 2 lines starting with "controls" in named.conf

named-checkconf gives no errors.

Somebody an idea??


Tanx,

	Hans



More information about the bind-users mailing list