Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL"

  1. #1
    jcvalim is offline Active Member
    Join Date
    Nov 2008
    Location
    Rio de Janeiro - Brazil
    Posts
    34
    Rep Power
    6

    Exclamation DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL"

    I did a basic installation of Debian, which will be used for a mail server "ZIMBRA". I Installed the bind9 and did the configuration of the zones and created the files in the directory / etc / bind.
    After the process I typed the following command to test my DNS:

    nslookup mail.hotelpart.com and presented the following error:



    **************************************************
    * mail:/# nslookup mail.hotelpart.com *
    * Server: 127.0.0.1 *
    * Address: 127.0.0.1#53 *
    * *
    *** server can't find mail.hoteldofrade.com: SERVFAIL *
    **************************************************

    I would enlist the help of you to resolve this problem that I have some time I'm trying to solve:

    Easier to stay I put my files in message: The files named.conf, db.hotelpart.com and db.111.20.11.200.

    -------------------------------------------------------------------------

    File 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";

    // prime the server with knowledge of the root servers
    zone "." {
    type hint;
    file "/etc/bind/db.root";
    };

    // be authoritative for the localhost forward and reverse zones, and for
    // broadcast zones as per RFC 1912

    zone "localhost" {
    type master;
    file "/etc/bind/db.local";
    };

    zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";
    };

    zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";
    };

    zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";
    };

    zone "hotelpart.com"{
    notify no;
    type master;
    file "/etc/bind/db.hotelpart.com";
    };

    zone "111.20.11.200.in-addr.arpa"{
    notify no;
    type master;
    file "/etc/bind/db.111.20.11.200";
    };

    // zone "com" { type delegation-only; };
    // zone "net" { type delegation-only; };

    // From the release notes:
    // Because many of our users are uncomfortable receiving undelegated answers
    // from root or top level domains, other than a few for whom that behaviour
    // has been trusted and expected for quite some length of time, we have now
    // introduced the "root-delegations-only" feature which applies delegation-only
    // logic to all top level domains, and to the root domain. An exception list
    // should be specified, including "MUSEUM" and "DE", and any other top level
    // domains from whom undelegated responses are expected and trusted.
    // root-delegation-only exclude { "DE"; "MUSEUM"; };

    include "/etc/bind/named.conf.local";


    -------------------------------------------------------------------------

    File db.hotelpart.com

    ;
    ; BIND data file for local loopback interface
    ;
    $TTL 86400
    @ IN SOA mail.hotelpart.com. root.hotelpart.com. (
    1 ; Serial
    3600 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    3600
    )
    ;
    @ IN NS localhost
    @ IN MX 5 mail.hotelpart.com
    localhost IN A 127.0.0.1
    www IN A 200.11.20.111
    mail IN A 200.11.20.111

    -------------------------------------------------------------------------

    File db.111.20.11.200

    ;
    ; BIND data file for local loopback interface
    ;
    $TTL 86400
    @ IN SOA mail.hotelpart.com. root.hotelpart.com. (
    1 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800 ) ; Negative Cache TTL
    ;
    @ IN MX mail.hotelpart.com.
    @ IN A 200.11.20.111
    @ IN PTR mail.hotelpart.com.


    Thanks!!!

    I count on the help of you!!!
    Last edited by jcvalim; 04-02-2009 at 04:47 AM.

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Have you updated /etc/resolv.conf to point to the BIND server ? Please post the following
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig hotelpart.com mx
    dig hotelpart.com any
    host `hostname` <- note backticks and not single quotes

  3. #3
    jcvalim is offline Active Member
    Join Date
    Nov 2008
    Location
    Rio de Janeiro - Brazil
    Posts
    34
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Have you updated /etc/resolv.conf to point to the BIND server ? Please post the following
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig hotelpart.com mx
    dig hotelpart.com any
    host `hostname` <- note backticks and not single quotes
    My file resolv.conf

    mail:~# cat /etc/hosts
    127.0.0.1 localhost
    201.18.17.118 mail.hotelpart.com mail

    # 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
    ff02::3 ip6-allhosts

    dig hotelpart.com mx

    mail:~# dig hotelpart.com mx

    ; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 8763
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;hotelpart.com. IN MX

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 2 06:02:56 2009
    ;; MSG SIZE rcvd: 34


    dig hotelpart.com any

    mail:~# dig hotelpart.com any

    ; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3035
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;hotelpart.com. IN ANY

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 2 06:05:09 2009
    ;; MSG SIZE rcvd: 34

    host `hostname`

    mail:~# host `hostname`
    Host mail not found: 3(NXDOMAIN)

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Have you updated your /etc/resolv.conf to point to your BIND installation (not sure as you did not post that bit of information )

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    Your hosts file is also incorrect, it should be like this:

    Code:
    127.0.0.1 localhost.localdomain localhost
    201.18.17.118 mail.hotelpart.com mail
    and your MX record points to:

    Code:
    mail IN A 200.11.20.111
    which is not the IP address of the server in your hosts file.

    What is the IP address of the Zimbra server? Is the Zimbra server sitting behind a firewall or NAT router or is it on a Public IP?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    jcvalim is offline Active Member
    Join Date
    Nov 2008
    Location
    Rio de Janeiro - Brazil
    Posts
    34
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    Your hosts file is also incorrect, it should be like this:

    Code:
    127.0.0.1 localhost.localdomain localhost
    200.11.20.111 mail.hotelpart.com mail
    and your MX record points to:

    Code:
    mail IN A 200.11.20.111
    which is not the IP address of the server in your hosts file.

    What is the IP address of the Zimbra server? Is the Zimbra server sitting behind a firewall or NAT router or is it on a Public IP?
    The IP adress of my server Zimbra is 200.11.20.111.
    He is behind a router CISCO 1700.
    This IP is a Public IP.

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    Then you should modify the hosts file as I've shown you, does that solve the problem?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    jcvalim is offline Active Member
    Join Date
    Nov 2008
    Location
    Rio de Janeiro - Brazil
    Posts
    34
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    Then you should modify the hosts file as I've shown you, does that solve the problem?
    I made the changes you asked me and there is still a problem.

    mail:~# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    200.11.20.111 mail.hotelpart.com mail

    # 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
    ff02::3 ip6-allhosts

    --------------------------------------------------------
    File db.hotelpart.com

    ;
    ; BIND data file for local loopback interface
    ;
    $TTL 86400
    @ IN SOA mail.hotelpart.com. root.hotelpart.com. (
    1 ; Serial
    3600 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    3600
    )
    ;
    @ IN NS mail.hotelpart.com.
    @ IN MX 5 mail.hotelpart.com
    localhost IN A 127.0.0.1
    www IN A 200.11.20.111
    mail IN A 200.11.20.111


    File db.111.20.11.200

    ;
    ; BIND data file for local loopback interface
    ;
    $TTL 86400
    @ IN SOA mail.hotelpart.com. root.hotelpart.com. (
    1 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800 ) ; Negative Cache TTL
    ;
    @ IN NS mail.hotelpart.com.
    @ IN MX mail.hotelpart.com.
    @ IN A 111.20.11.200
    @ IN PTR mail.hotelpart.com.

    Do You have more any tips, for help me ?????

    Thanks!!!

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Run the commands again so we can check please
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig hotelpart.com mx
    dig hotelpart.com any
    host `hostname` <- note backticks and not single quotes

  10. #10
    jcvalim is offline Active Member
    Join Date
    Nov 2008
    Location
    Rio de Janeiro - Brazil
    Posts
    34
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Run the commands again so we can check please
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig hotelpart.com mx
    dig hotelpart.com any
    host `hostname` <- note backticks and not single quotes
    OK!!!


    mail:~# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    201.18.17.118 mail.hotelpart.com mail

    # 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
    ff02::3 ip6-allhosts

    ------------------------------------------------------------

    mail:~# cat /etc/resolv.conf
    domain hotelpart.com
    search hotelpart.com
    nameserver 127.0.0.1
    nameserver 10.0.0.1
    nameserver 200.222.0.34
    nameserver 200.222.0.35

    ------------------------------------------------------------

    mail:~# dig hotelpart.com mx

    ; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 28808
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;hotelpart.com. IN MX

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 2 10:49:29 2009
    ;; MSG SIZE rcvd: 34

    --------------------------------------------------------------

    mail:~# dig hotelpart.com any

    ; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54761
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;hotelpart.com. IN ANY

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 2 10:50:55 2009
    ;; MSG SIZE rcvd: 34

    ---------------------------------------------------------------

    mail:~# host `hostname`
    Host mail not found: 3(NXDOMAIN)


    It's all here, as requested!!!!

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. [SOLVED] Multi Server - DNS - Imapproxy
    By innercy in forum Installation
    Replies: 1
    Last Post: 12-29-2007, 10:21 PM
  3. Please help
    By scott_summers in forum Administrators
    Replies: 0
    Last Post: 09-26-2007, 11:11 PM
  4. Replies: 3
    Last Post: 06-07-2007, 07:19 AM

Posting Permissions

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