Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-2011, 09:02 AM
Member
 
Posts: 12
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!
Reply With Quote
  #2 (permalink)  
Old 07-28-2011, 09:06 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #3 (permalink)  
Old 07-28-2011, 09:30 AM
Member
 
Posts: 12
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!
Reply With Quote
  #4 (permalink)  
Old 07-28-2011, 12:40 PM
Senior Member
 
Posts: 57
Default

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

-andy
Reply With Quote
  #5 (permalink)  
Old 07-29-2011, 03:13 PM
Member
 
Posts: 12
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?
Reply With Quote
  #6 (permalink)  
Old 07-29-2011, 10:37 PM
Senior Member
 
Posts: 57
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.
Reply With Quote
  #7 (permalink)  
Old 08-01-2011, 05:39 AM
Member
 
Posts: 12
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?
Reply With Quote
  #8 (permalink)  
Old 08-01-2011, 05:42 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #9 (permalink)  
Old 08-01-2011, 06:05 AM
Member
 
Posts: 12
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!
Reply With Quote
  #10 (permalink)  
Old 08-01-2011, 06:25 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.