title: Bind9 Master zone has no address records (A or AAAA)
body: <p>I've just installed Bind9 and Webmin on my VPS to manage a DNS server. Domain of the nameserver is ns1.primesystems.ch.</p>
  
  <p>I created a new master zone (forward) for smartvend.ch through webmin. This works just fine, ip is resolved correctly. See configuration.</p>
  
  <pre><code>$ttl 38400
  smartvend.ch.   IN  SOA ns1.primesystems.ch. john.doe.domain.ch. (
          1399011114
          10800
          3600
          604800
          38400 )
  smartvend.ch.   IN  NS  ns1.primesystems.ch.
  smartvend.ch.   IN  A   185.16.173.71
  </code></pre>
  
  <p>But when I create a new master zone for primesystems.ch (TLD of nameserver, maybe problem?) through webmin, an error occurs.</p>
  
  <p>Config:</p>
  
  <pre><code>$ttl 38400
  primesystems.ch.    IN  SOA ns1.primesystems.ch. john.doe.domain.ch. (
          1399028931
          10800
          3600
          604800
          38400 )
  primesystems.ch.    IN  NS  ns1.primesystems.ch.
  primesystems.ch.    IN  A   185.16.173.71
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>The following errors were found in the records file /var/lib/bind/primesystems.ch.hosts ..
  
  zone primesystems.ch/IN: NS 'ns1.primesystems.ch' has no address records (A or AAAA)
  zone primesystems.ch/IN: not loaded due to errors.
  </code></pre>
  
  <p>The /etc/bin/named.conf.local looks like this:</p>
  
  <pre><code>zone "smartvend.ch" {
      type master;
      file "/var/lib/bind/smartvend.ch.hosts";
      };
  zone "primesystems.ch" {
      type master;
      file "/var/lib/bind/primesystems.ch.hosts";
      };
  </code></pre>
  
  <p>So primesystems.ch can not be resolved by dig or host command - but smartvend.ch can.</p>
  
  <p>So in my point of view, there must be a problem with primesystems.ch because it's also the nameserver. What i want is to route the url primesystems.ch to a webserver. Has anyone a idea?</p>
  
  <p><strong>UPDATE:</strong>
  After adding 'ns1 IN A 185.16.173.70', the error disappeared. But when I run 'host primesystems.ch' no IP is returned. And 'dig primesystems.ch' returs this:</p>
  
  <pre><code>; &lt;&lt;&gt;&gt; DiG 9.8.3-P1 &lt;&lt;&gt;&gt; primesystems.ch
  ;; global options: +cmd
  ;; Got answer:
  ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 33401
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
  
  ;; QUESTION SECTION:
  ;primesystems.ch.       IN  A
  
  ;; AUTHORITY SECTION:
  primesystems.ch.    424 IN  SOA ns1.primesystems.ch.         kevin\.kirn.kdsolutions.ch. 1399027394 10800 3600 604800 38400
  
  ;; Query time: 23 msec
  ;; SERVER: 62.2.17.61#53(62.2.17.61)
  ;; WHEN: Fri May  2 13:43:49 2014
  ;; MSG SIZE  rcvd: 96
  </code></pre>