Results 1 to 6 of 6

Thread: DNS server problem SERVFAIL

  1. #1
    Join Date
    May 2010
    Beans
    3

    Angry DNS server problem SERVFAIL

    Hello guys, i have set a DNS server using bind9 on a ubuntu 10.4 desktop (clean install)

    i have followed some tutorials and tried different approaches regarding the configuration that i should do to bind, but without any luck.


    First things first:

    External IP Adress: 89.36.151.167
    Ubuntu server ip adress: 192.168.1.253
    DNS name: adandu.ro
    NS: ns.adandu.ro

    when interogating the server from the local machine with nslookup this is what it shows:

    nslookup
    > server 192.168.1.253
    Default server: 192.168.1.253
    Address: 192.168.1.253#53
    > adandu.ro
    Server: 192.168.1.253
    Address: 192.168.1.253#53

    ** server can't find adandu.ro.adandu.ro: SERVFAIL


    Configuration files:

    named.conf
    cat /etc/bind/named.conf
    // This is the primary configuration file for the BIND DNS server named.
    //
    // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
    // structure of BIND configuration files in Debian, *BEFORE* you customize
    // this configuration file.
    //
    // If you are just adding zones, please do that in /etc/bind/named.conf.local

    include "/etc/bind/named.conf.options";
    include "/etc/bind/named.conf.local";
    include "/etc/bind/named.conf.default-zones";


    named.conf.local

    cat /etc/bind/named.conf.local
    //
    // Do any local configuration here
    //

    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    zone "adandu.ro" {
    type master;
    file "/etc/bind/zones/adandu.ro.db";
    };
    //zone "0.168.192.in-addr.arpa" {
    // type master;
    // file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
    //};


    the .db file


    cat /etc/bind/zones/adandu.ro.db
    adandu.ro. IN SOA ns.adandu.ro. (
    2006081401
    28800
    3600
    604800
    38400
    );

    adandu.ro. IN NS ns.adandu.ro.
    adandu.ro. IN MX 10 mail.adandu.ro.
    localhost IN A 127.0.0.1
    mail IN A 89.36.151.167
    ns IN A 89.36.151.167
    www IN A 89.36.151.167


    resolv.conf

    cat /etc/resolv.conf
    # Generated by NetworkManager

    search adandu.ro

    nameserver 192.168.1.253
    nameserver 89.36.151.167
    nameserver 86.105.253.4 //isp dns server


    Some other tests:

    dig adandu.ro

    ; <<>> DiG 9.7.0-P1 <<>> adandu.ro
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 55987
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;adandu.ro. IN A

    ;; Query time: 0 msec
    ;; SERVER: 192.168.1.253#53(192.168.1.253)
    ;; WHEN: Thu May 20 00:42:18 2010
    ;; MSG SIZE rcvd: 27


    nslookup adandu.ro
    ;; Got SERVFAIL reply from 192.168.1.253, trying next server
    ;; Got SERVFAIL reply from 89.36.151.167, trying next server
    ;; Got SERVFAIL reply from 192.168.1.253, trying next server
    ;; Got SERVFAIL reply from 89.36.151.167, trying next server
    Server: 86.105.253.4
    Address: 86.105.253.4#53

    ** server can't find adandu.ro.adandu.ro: SERVFAIL


    nslookup google.com
    Server: 192.168.1.253
    Address: 192.168.1.253#53

    Non-authoritative answer:
    Name: google.com
    Address: 74.125.87.106
    Name: google.com
    Address: 74.125.87.147
    Name: google.com
    Address: 74.125.87.99
    Name: google.com
    Address: 74.125.87.103
    Name: google.com
    Address: 74.125.87.104
    Name: google.com
    Address: 74.125.87.105


    netstat -a -n | grep 53
    tcp 0 0 192.168.1.253:53 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
    tcp 0 0 192.168.1.253:22 92.86.118.115:50717 ESTABLISHED
    tcp 0 52 192.168.1.253:22 192.168.1.2:61554 ESTABLISHED
    tcp6 0 0 :::53 :::* LISTEN
    tcp6 0 0 ::1:953 :::* LISTEN
    udp 0 0 192.168.1.253:53 0.0.0.0:*
    udp 0 0 127.0.0.1:53 0.0.0.0:*
    udp 0 0 192.168.1.253:53 0.0.0.0:*
    udp 0 0 127.0.0.1:53 0.0.0.0:*
    udp 0 0 0.0.0.0:5353 0.0.0.0:*
    LISTEN

    I think this is all the info I can give you, but if there is something else that you would want to know tell me and i will try to answer.

    Sorry for the long post
    Please keep in mind that i am pretty new to linux.

    Can you please give me a solution for this problem? I have checked a lot of forums and as i can tell, everything looks in order.

    PS: Port 53 (udp) is forwarded correctly to the ubuntu machine.

    Thank you very much!

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server problem SERVFAIL

    First, your serial number (2006081401) is old. Second, you don't have an A record for adandu.ro. in your zone file, so add something like:

    Code:
    @ IN A 89.36.151.167
    「明後日の夕方には帰ってるからね。」


  3. #3
    Join Date
    May 2010
    Beans
    3

    Re: DNS server problem SERVFAIL

    Thanks for the quick reply,
    i have modified the zone accordingly and it looks like this:


    cat /etc/bind/zones/adandu.ro.db
    Code:
    adandu.ro. IN SOA ns.adandu.ro.  (
                                                            2010011401
                                                            28800
                                                            3600
                                                            604800
                                                            38400
     );
    
    adandu.ro. IN NS ns.adandu.ro.
    adandu.ro. IN MX 10 mail.adandu.ro.
    localhost IN A 127.0.0.1
    mail IN A 89.36.151.167
    ns IN A 89.36.151.167
    @ IN A 89.36.151.167
    www IN A 89.36.151.167
    but the error is the same after a service restart

    nslookup adandu.ro
    Code:
    ;; Got SERVFAIL reply from 192.168.1.253, trying next server
    ;; Got SERVFAIL reply from 89.36.151.167, trying next server
    ;; Got SERVFAIL reply from 192.168.1.253, trying next server
    ;; Got SERVFAIL reply from 89.36.151.167, trying next server
    Server:         86.105.253.4
    Address:        86.105.253.4#53
    
    ** server can't find adandu.ro.adandu.ro: SERVFAIL

  4. #4
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DNS server problem SERVFAIL

    There are other errors in your zone file:

    Code:
    itsuki ~ # cat adandu.ro.db 
    adandu.ro. IN SOA ns.adandu.ro.  (
                                                            2010011401
                                                            28800
                                                            3600
                                                            604800
                                                            38400
     );
    
    adandu.ro. IN NS ns.adandu.ro.
    adandu.ro. IN MX 10 mail.adandu.ro.
    localhost IN A 127.0.0.1
    mail IN A 89.36.151.167
    ns IN A 89.36.151.167
    @ IN A 89.36.151.167
    www IN A 89.36.151.167
    itsuki ~ # named-checkzone adandu.ro adandu.ro.db
    dns_rdata_fromtext: adandu.ro.db:6: near eol: unexpected end of input
    adandu.ro.db:9: no TTL specified; zone rejected
    adandu.ro.db:10: no TTL specified; zone rejected
    adandu.ro.db:11: no TTL specified; zone rejected
    adandu.ro.db:12: no TTL specified; zone rejected
    adandu.ro.db:13: no TTL specified; zone rejected
    adandu.ro.db:14: no TTL specified; zone rejected
    adandu.ro.db:15: no TTL specified; zone rejected
    zone adandu.ro/IN: loading from master file adandu.ro.db failed: unexpected end of input
    zone adandu.ro/IN: not loaded due to errors.
    I don't know how you made it, but the information you used is not correct. Here's a correct example.
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    May 2010
    Beans
    3

    Re: DNS server problem SERVFAIL

    thank you for your help,

    i have finally solved the problem,

    problem was with the serial number, i put 2010052001 and it worked

    thanks for the quick replays.

  6. #6
    Join Date
    Aug 2012
    Beans
    22

    Re: DNS server problem SERVFAIL

    Hi,

    I have the same problem ...

    This is the zone file

    Code:
    ;
    ; BIND data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     tm.example.com.cm. root.tm.example.com.cm. (
                                 22         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      ns.tm.example.com.cm.
    @       IN      A       192.168.100.131
    @       IN      AAAA    ::1


    This is the revers zone
    Code:
    ;
    ; BIND reverse data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     tm.example.com.cm. root.tm.example.com.cm. (
                                 16         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      ns.tm.example.com.cm.
    131     IN      PTR     ns.tm.example.com.cm.
    In the named.conf.options i have the next

    Code:
     forwarders {
                    192.168.100.131; - the Ubuntu server
                    192.168.100.16;  - the other Windows dns server (the main in our organization )
                    8.8.8.8;
             };
    And i have put the following as DNS on the Ubuntu interface
    Code:
     dns-nameservers 192.168.100.131 8.8.8.8 192.168.100.16
    So pleas help me to fix this problem ...

    TNX in advance ...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •