title: DNS debian SERVFAIL server can't find, no ping
body: <p>I'm trying create a DNS server in my environment of test, but i don't know bind. The settings from my server is created with result of search in google. The bind start without error, but don't resolve my domain. I'm trying create a domain: <strong>lunarinterativa.labs</strong> to use in my solutions.</p>
  
  <p>i receive this error:</p>
  
  <pre><code>server can't find www.lunarinterativa.labs.lunarinterativa.labs: SERVFAIL
  </code></pre>
  
  <p>when i execute the command below: </p>
  
  <pre><code>nslookup
  &gt; server interativa32
  Default server: interativa32
  Address: 172.224.116.100#53
  &gt; www.lunarinterativa.labs
  Server:         interativa32
  Address:        172.224.116.100#53
  </code></pre>
  
  <p>My internal netwotk settings is:</p>
  
  <pre><code>ip address: 172.224.116.100
  netmask: 255.255.255.0
  gateway: 172.224.116.254
  </code></pre>
  
  <p>I ping to interativa32.lunarinterativa.labs: is OK</p>
  
  <pre><code>PING interativa32.lunarinterativa.labs (172.224.116.100) 56(84) bytes of data.64 bytes from interativa32.lunarinterativa.labs (172.224.116.100): icmp_req=1 ttl=64 time=0.049 ms
  </code></pre>
  
  <p>I ping to www.interativa32.lunarinterativa.labs: is Wrong</p>
  
  <pre><code>ping: unknown host www.interativa32.lunarinterativa.labs
  </code></pre>
  
  <p>This is the content of file of settings from my domain (file: /etc/bind/db.lunarinterativa.labs) :</p>
  
  <pre><code>; -------------------------------------------------------------------
  ; Created by Lunar Interativa Scripts
  ; type: Bind9
  ; author: Sileno de Oliveira Brito
  ; since: 09 Mar 2013
  ; created: 10 Mar 2013
  ; domain: lunarinterativa.labs
  ; ip address: 172.224.116.100
  ; hostname: interativa32
  ; -------------------------------------------------------------------
  $TTL   604800
  @       IN      SOA     interativa32.lunarinterativa.labs.      root.interativa32.lunarinterativa.labs. (
                          2004111700  ; Serial
                          604800          ; Refresh
                          86400           ; Retry
                          2419200     ; Expire
                          604800 )    ; Negative Cache TTL
  ;
  @       IN      A                               172.224.116.100
  
  interativa32            IN      A       172.224.116.100
  www                     IN      CNAME   @
  ftp                     IN      CNAME   @
  repo                    IN      CNAME   @
  ns1                     IN      CNAME   @
  </code></pre>
  
  <p>This is the content of file of settings from my reverse domain (file: /etc/bind/db.lunarinterativa.labs):</p>
  
  <pre><code>; -------------------------------------------------------------------
  ; Created by Lunar Interativa Scripts
  ; type: Bind9 Reverse
  ; author: Sileno de Oliveira Brito
  ; since: 09 Mar 2013
  ; created: 10 Mar 2013
  ; domain: lunarinterativa.labs
  ; reverse: 116.224.172.in-addr.arpa
  ; ip address: 172.224.116.100
  ; hostname: interativa32
  ; -------------------------------------------------------------------
  @       IN      SOA     interativa32.lunarinterativa.labs.      root.interativa32.lunarinterativa.labs. (
                          2004111700  ; Serial
                          604800          ; Refresh
                          86400           ; Retry
                          2419200     ; Expire
                          604800 )    ; Negative Cache TTL
  @       IN      NS                              ns.lunarinterativa.labs.
  @       IN      A                               172.224.116.100
  100     IN      PTR     interativa32.lunarinterativa.labs
  </code></pre>
  
  <p>This is the entry in /etc/bind/named.conf.local</p>
  
  <pre><code>zone "116.224.172.in-addr.arpa" {
          type master;
          file "/etc/bind/db.116.224.172.in-addr.arpa";
  };
  zone "lunarinterativa.labs" {
          type master;
          file "/etc/bind/db.lunarinterativa.labs";
  };
  </code></pre>
  
  <p>This is my /etc/resolv.conf</p>
  
  <pre><code>domain lunarinterativa.labs
  search lunarinterativa.labs
  nameserver 127.0.0.1
  </code></pre>
  
  <p>This is my /etc/hosts</p>
  
  <pre><code>127.0.0.1       localhost
  172.224.116.100 interativa32.lunarinterativa.labs       interativa32
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>This is my /etc/bind/named.conf.options</p>
  
  <pre><code>options {
          directory "/var/cache/bind";
  
          // If there is a firewall between you and nameservers you want
          // to talk to, you may need to fix the firewall to allow multiple
          // ports to talk.  See http://www.kb.cert.org/vuls/id/800113
  
          // If your ISP provided one or more IP addresses for stable
          // nameservers, you probably want to use them as forwarders.
          // Uncomment the following block, and insert the addresses replacing
          // the all-0's placeholder.
  
          forwarders {
                  8.8.8.8;
          //      0.0.0.0;
                  172.224.116.254;
          };
  
          auth-nxdomain no;    # conform to RFC1035
          listen-on port 53 { 127.0.0.1; 172.224.116.100; };
          allow-query { 127.0.0.1; 172.224.116.0/24; };
          allow-recursion { 127.0.0.1; 172.224.116.0/24; };
          allow-transfer { none; };
  
          listen-on-v6 { any; };
  </code></pre>