What I'm trying to do:
Trying to create a bind DNS service that will resolve local addresses as well as public addresses. I need to be able to resolve internal local addresses for remote locations. These remotes hit our network through a proxy, and I'm trying to install the bind server on that proxy server.
I'm using bind9 which (according to what I've read) will let me use views to direct DNS requests through an acl.
What's happening:
I have the following config which is reporting a number of syntax errors and a rndc connect failed error that stops the DNS.
file: named.conf.local
acl internals {
x.x.x.x/8; (local)
192.168.1.0/24;
);
// Custom Zones for SERVER
view "internal" {
match-clients { internals; };
zone "SERVER" {
type master;
file "/etc/bind/internal/db.SERVER";
};
};
view "external" {
match-clients { any: };
zone "SERVER" {
type master;
file "/etc/bind/external/db.SERVER";
};
};
errors: from syslog
Oct 28 10:29:22 SERVER named[15228]: loading configuration from '/etc/bind/named.conf'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:7: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:7: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:8: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:9: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:9: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:10: missing ';' before 'master'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:11: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:15: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:15: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:16: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:16: missing ';' before '}'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:17: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:17: missing ';' before '{'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:18: missing ';' before 'master'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf.local:19: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf:12: missing ';' before '"'
Oct 28 10:29:22 SERVER named[15228]: /etc/bind/named.conf:13: expected IP match list element near end of file
Oct 28 10:29:22 SERVER named[15228]: loading configuration: unexpected token
Oct 28 10:29:22 SERVER named[15228]: exiting (due to fatal error)
What I need to know:
Obviously I have something wrong, and I just need to know where I messed up. I need to know if there is something wrong syntactically or if I am not using the right tools to create a bind server.
TL;DR:
Given the config file and errors above what is causing the problem?