title: Syntax and RNDC bind errors on conf
body: <h1>What I'm trying to do:</h1>
  
  <p>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.</p>
  
  <p>I'm using bind9 which (according to what I've read) will let me use views to direct DNS requests through an acl.</p>
  
  <h1>What's happening:</h1>
  
  <p>I have the following config which is reporting a number of syntax errors and a rndc connect failed error that stops the DNS.</p>
  
  <p><strong>file:<em></strong> named.conf.local</em></p>
  
  <pre><code>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";
      };
  };
  </code></pre>
  
  <p><strong>errors:</strong> <em>from syslog</em></p>
  
  <pre><code>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)
  </code></pre>
  
  <h1>What I need to know:</h1>
  
  <p>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.</p>
  
  <h1>TL;DR:</h1>
  
  <p>Given the config file and errors above what is causing the problem?</p>