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

Thread: Split DNS and etc/hosts problem, again.

  1. #1
    emicenizo is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    4

    Default Split DNS and etc/hosts problem, again.

    Hi there!

    Sooo, first of all, my apologies for the lousy english you are going to read.
    I'm trying to install Zimbra on my Linux RedHat; using Bind for splitting those DNS.

    I have done EVERY step literally; but i still cant even start installing! The problem is, my "dig address mx" returns "no servers could be reached"; and i have also the "Please fix your /etc/hosts file to contain..." on installing Zimbra.

    Step by step, then; these are my configs:

    Code:
    [root@redHat zcs-7.1.1_GA_3196.RHEL5_64.20110527011124]# cat /etc/resolv.conf
    # Generated by NetworkManager
    domain server.zimbraloco.com
    search server.zimbraloco.com
    nameserver 10.0.0.100
    Code:
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> server.zimbraloco.com mx
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Code:
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> server.zimbraloco.com any
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached
    Code:
    [root@redHat zcs-7.1.1_GA_3196.RHEL5_64.20110527011124]# host `hostname`
    ;; connection timed out; no servers could be reached
    Here; my etc/hosts:
    Code:
    127.0.0.1 localhost.localdomain.com localhost
    10.0.0.100 server.zimbraloco.com ecenizo
    named.conf:
    Code:
    options {
            listen-on port 53 { 127.0.0.1; };
            listen-on-v6 port 53 { ::1; };   
            directory       "/var/named";    
            dump-file       "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/data/named_mem_stats.txt";
            allow-query     { localhost; };
            recursion yes;
    
            forwarders { 192.168.0.2; };
    
            dnssec-enable yes;
            dnssec-validation yes;
            dnssec-lookaside auto;
    
            /* Path to ISC DLV key */
            bindkeys-file "/etc/named.iscdlv.key";
    };
    
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    
    zone "." IN {
            type hint;
            file "named.ca";
    };
    
    zone "server.zimbraloco.com" IN {
                type master;
                file "db.zimbraloco.com";
                allow-update { none; };
            };
    
    
    include "/etc/named.rfc1912.zones";
    zone db.zimbraloco.com:
    Code:
    $TTL 3h
    
    @       IN      SOA     server.zimbraloco.com. ecenizo.server.zimbraloco.com. (
                                   10118      ; Serial
                                   43200      ; Refresh
                                   3600       ; Retry
                                   3600000    ; Expire
                                   2592000 )  ; Minimum
    
    ;       Define the nameservers and the mail servers
            IN      NS      server.zimbraloco.com.
            IN      MX  10  server.zimbraloco.com.
            IN      A       10.0.0.100
    So, any advice, i'm all ears...

    Thanks in advance!

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,498
    Rep Power
    56

    Default

    Your hosts file is incorrect as is your zone file. You should go to the Split DNS article and follow the instructions in there and as youir dig commands time-out I'd make sure that bind is actually running (and SElinux and the Firewall are both disabled).
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    emicenizo is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    4

    Default

    So! I literally copied and pasted all the code on the Split-DNS guide. I have this error when starting named, now:

    Code:
    [root@redHat zcs-7.1.1_GA_3196.RHEL5_64.20110527011124]# /etc/init.d/named restart
    Deteniendo named:                                          [  OK  ]
    Iniciando named:
    Error in named configuration:
    zone localhost.localdomain/IN: loaded serial 0
    zone localhost/IN: loaded serial 0
    zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    db.server.example.com:4: no TTL specified; using SOA MINTTL instead
    db.server.example.com:11: NS record '192.168.0.2' appears to be an address
    zone server.example.com/IN: NS '192.168.0.2.server.example.com' has no address records (A or AAAA)
    zone server.example.com/IN: not loaded due to errors.
    _default/server.example.com/IN: bad zone
                                                               [FALLÓ]
    zone file:
    Code:
      GNU nano 2.0.9     Fichero: /var/named/db.server.example.com
    
    ;
    ;       Addresses and other host information.
    ;
    @       IN      SOA     server.example.com. hostmaster.server.example.com. (
                                   10118      ; Serial
                                   43200      ; Refresh
                                   3600       ; Retry
                                   3600000    ; Expire
                                   2592000 )  ; Minimum
    ;       Define the nameservers and the mail servers
            IN      NS      192.168.0.7
            IN      MX      10 mail.yourdomain.com.
    mail    IN      A       192.168.0.7
    named.conf
    Code:
      GNU nano 2.0.9          Fichero: /etc/named.conf
    
    // Default named.conf generated by install of bind-9.2.4-2
    options {
           directory "/var/named";
           dump-file "/var/named/data/cache_dump.db";
           statistics-file "/var/named/data/named_stats.txt";
    forwarders { 192.168.0.2 ; };
    };
    
    include "/etc/named.rfc1912.zones";
    
    // We are the master server for server.example.com
    zone "server.example.com" {
        type master;
        file "db.server.example.com";
    };
    Thanks for those quick replies!

  4. #4
    andy204 is offline Senior Member
    Join Date
    Jul 2010
    Location
    Austria
    Posts
    59
    Rep Power
    5

    Default

    one hint on your zone file: your zonefile does not has a reference for "server.zimbraloco.com."

    -andy

  5. #5
    emicenizo is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    4

    Default

    All right, after reading a lot and using the Search function, i could make it through.

    Even "dig" did return something usefull .

    But now! I have a different problem: When installing Zimbra, this one pops:

    Code:
    Installing packages
    
        zimbra-core......zimbra-core-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done
        zimbra-ldap......zimbra-ldap-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done
        zimbra-logger......zimbra-logger-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done
        zimbra-mta......zimbra-mta-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done      
        zimbra-snmp......zimbra-snmp-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done    
        zimbra-store......zimbra-store-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done  
        zimbra-apache......zimbra-apache-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done
        zimbra-spell......zimbra-spell-7.1.1_GA_3196.RHEL6_64-20110527010625.x86_64.rpm...done  
    Operations logged to /tmp/zmsetup.07292011-184241.log                                       
    Installing LDAP configuration database...done.                                              
    Setting defaults...                                                                         
    
    DNS ERROR resolving MX for zimbraloco.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]                                               
    Create domain: [zimbraloco.com] ^C
    Why does that appears? Then, when trying to start zimbra:

    Code:
    [zimbra@redHat zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]$ zmcontrol start
    Host localhost
    Unable to determine enabled services from ldap.
    Unable to determine enabled services. Cache is out of date or doesn't exist.
    So, I guess something is still bad on my DNS configuration?

    Here's the stuff:

    Code:
    zimbra@redHat zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]$ cat /etc/resolv.conf
    search zimbraloco.com
    nameserver 127.0.0.1
    Code:
    [zimbra@redHat zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]$ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.1.7 zimbraloco.com redHat
    Code:
    [root@´host´ zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]# host `hostname`
    Host redHat not found: 3(NXDOMAIN)
    Code:
    [root@´host´ zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]# cat /etc/named.conf
    // Default named.conf generated by install of bind-9.2.4-2
    options {
           directory "/var/named";
           dump-file "/var/named/data/cache_dump.db";
           statistics-file "/var/named/data/named_stats.txt";
    forwarders { 192.168.1.7 ; };
    };
    
    // We are the master server for server.example.com
    zone "zimbraloco.com" {
        type master;
        file "db.server.example.com";
    };
    Code:
    [root@´host´ zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]# cat /var/named/db.server.example.com
    ;
    ;       Addresses and other host information.
    ;
    @       IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. (
                            10131
                            43200
                            3600
                            3600000
                            2592000 )
    ;       Define the nameservers and the mail servers
    
    zimbraloco.com. IN      A       192.168.1.7
    zimbraloco.com. IN      NS      zimbraloco.com.
    mail.zimbraloco.com.    IN      MX      10 mail.zimbraloco.com.
    Code:
    .1_GA_3196.RHEL6_64.20110527010625]# dig zimbraloco.com any
    
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> zimbraloco.com any
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36539
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      ANY
    
    ;; ANSWER SECTION:
    zimbraloco.com.         2592000 IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. 10131 43200 3600 3600000 2592000
    zimbraloco.com.         2592000 IN      A       192.168.1.7
    zimbraloco.com.         2592000 IN      NS      zimbraloco.com.
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Jul 29 19:08:47 2011
    ;; MSG SIZE  rcvd: 106
    Code:
    [root@´host´ zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]# dig zimbraloco.com mx
    
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> zimbraloco.com mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17785
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      MX
    
    ;; AUTHORITY SECTION:
    zimbraloco.com.         2592000 IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. 10131 43200 3600 3600000 2592000
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Jul 29 19:09:13 2011
    ;; MSG SIZE  rcvd: 76

    Please! Im SO near (i guess...). What's the last piece of this puzzle?

  6. #6
    andy204 is offline Senior Member
    Join Date
    Jul 2010
    Location
    Austria
    Posts
    59
    Rep Power
    5

    Default

    to get you one step forward:
    mail.zimbraloco.com. IN MX 10 mail.zimbraloco.com.


    what is the ip of mail.zimbraloco.com

    you did see yourself in your dig command, that you do not have a valid mx entry.

  7. #7
    emicenizo is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    4

    Default

    Code:
      GNU nano 2.0.9                Fichero: /var/named/db.server.example.com
    
    ;
    ;       Addresses and other host information.
    ;
    @       IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. (
                            10131
                            43200
                            3600
                            3600000
                            2592000 )
    ;       Define the nameservers and the mail servers
    
    mail IN         A       192.168.1.7
    IN              NS      ns.zimbraloco.com.
    IN              MX      10 mail.zimbraloco.com.
    So... Still not founding "ns records". Is this the proper way of writing a zone file?

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,498
    Rep Power
    56

    Default

    Quote Originally Posted by emicenizo View Post
    [CODE] So... Still not founding "ns records". Is this the proper way of writing a zone file?
    You're not providing enough information to debug your problem. Go to the Split DNS article again and post the output of all the commands in the 'Verify...' section of that article.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    emicenizo is offline Member
    Join Date
    Jul 2011
    Posts
    12
    Rep Power
    4

    Default

    Code:
    [root@redHat redHat]# dig zimbraloco.com any
    
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> zimbraloco.com any
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26645
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      ANY
    
    ;; ANSWER SECTION:
    zimbraloco.com.         2592000 IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. 10131 43200 3600 3600000 2592000
    zimbraloco.com.         2592000 IN      A       192.168.1.7
    zimbraloco.com.         2592000 IN      NS      zimbraloco.com.
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Aug  1 10:03:55 2011
    ;; MSG SIZE  rcvd: 106
    Code:
    [root@redHat redHat]# dig zimbraloco.com mx
    
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> zimbraloco.com mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22729
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      MX
    
    ;; AUTHORITY SECTION:
    zimbraloco.com.         2592000 IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. 10131 43200 3600 3600000 2592000
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Aug  1 10:04:27 2011
    ;; MSG SIZE  rcvd: 76
    Code:
    [root@redHat redHat]# host $(hostname)
    ;; connection timed out; no servers could be reached
    Code:
    [root@redHat redHat]# cat /etc/resolv.conf
    search zimbraloco.com
    nameserver 127.0.0.1
    Code:
    [root@redHat redHat]# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.1.7 zimbraloco.com redHat
    Thanks in advance!

  10. #10
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,498
    Rep Power
    56

    Default

    According to that information you do not have an MX record for your server and the format of the A record for your server does not use the FQDN. Your hosts file is also incorrect: ou should not have any uppercase letters in your hosts file (it may cause you problems and it's best to change it); the entry for your server does not have your FQDN listed. See the examples in the Split DNS article for the correct format.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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. Debian, Zimbra 4, deferred mail Problem
    By tbovingdon in forum Installation
    Replies: 11
    Last Post: 11-25-2006, 02:36 PM

Posting Permissions

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