Bind server unresponsive on Ubuntu

Discussion in 'Installation/Configuration' started by mrkhoros, Feb 18, 2017.

  1. mrkhoros

    mrkhoros New Member

    I have installed ispconfig 3.1 and it is up and running , I made a tiny mistake in making a dns server and instead of " F " I typed " T " in my domain name , and realized that , once I deleted the dns zone from Ispconfig , the zone is not created it named.conf.local , instead of a file pri.mydomain.ltd a new file with a same name but different ending " pri.mydomain.ltd.err" is created , every new dns zone works with my bind server and the result of dig @127.0.0.1 newdomain.ltd shows my ns perfectly explicitly , yet I noticed for every dns zone that is deleted , the file with extension .err is made and that I am not able to nslookup it locally , this is my result for dig for a new zone :

    Code:
    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 testnumber2.dd
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29727
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;testnumber2.dd.                        IN      A
    
    ;; ANSWER SECTION:
    testnumber2.dd.         3600    IN      A       94.177.255.169
    
    ;; AUTHORITY SECTION:
    testnumber2.dd.         3600    IN      NS      ns77.test.dd.
    testnumber2.dd.         3600    IN      NS      ns3.test.dd.
    but the same domain when is deleted and created once again becomes :

    Code:
    root@Shahab:/etc/bind# dig @127.0.0.1 testnumber2.dd
    
    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 testnumber2.dd
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54294
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;hfp.co.ir.                     IN      A
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sat Feb 18 22:15:41 CET 2017
    ;; MSG SIZE  rcvd: 38
    which the ns are missing , I thought I should be smart and add the zone manually in my named.conf.local and I did

    Code:
    zone "testnumber2.dd" {
            type master;
            allow-transfer {none;};
            file "/etc/bind/pri.testnumber2.dd";
    };
    zone "hfp.co.ir" {
            type master;
            allow-transfer {none;};
            file "/etc/bind/pri.hfp.co.ir";
    };
    and restarted the service of bind , same result , I even renamed the file a few times to see if it reads it from .err or not and I got to the bottom of it that in fact it doesn't matter.

    please grace me with your wisdom
     

Share This Page