can't get acl to work!

Andreas Hasenack andreas at netbank.com.br
Sun Jul 16 19:18:05 UTC 2000


Hi all,

this is driving me nuts...
With bind-8.2.2P5 the following doesn't work:

options {
(...)
notify no;
acl can_query { !1.2.3/24; any; };
allow-query { 127.0.0.1; 192.168.1.0/24; };
(...)
listen-on {
	127.0.0.1;
	192.168.1.2;
};
(...)													   
};

If I then restart the server, I get:

Jul 16 16:23:18 mail named[21656]: /etc/named.conf:5: syntax error near acl
Jul 16 16:23:18 mail named[21656]: /etc/named.conf:6: syntax error near allow-query
(...)
Jul 16 16:23:18 mail named[21656]: listening on [127.0.0.1].53 (lo)
Jul 16 16:23:18 mail named[21656]: listening on [192.168.1.2].53 (eth0)
Jul 16 16:23:18 mail named[21656]: listening on [xxx.xxx.xxx.xx].53 (ppp0)
Jul 16 16:23:18 mail named[21656]: Forwarding source address is [0.0.0.0].1053
(...)

So, the "acl" directive wasn't understood and, even worse, the listen-on part
wasn't used (probably because of the error, but I thought the server wouldn't
start if it found an error, or, at least, would keep processing the .conf file).
I've also tried using "can_query" and even other names, but with no success. The
list archives also didn't help, nothing about this subject was found.
Any ideas?





More information about the bind-users mailing list