Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

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

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

    Default

    Quote Originally Posted by phoenix View Post
    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.
    Soooo, lets start over again.

    I have a Red Hat installed on a PC, and i want to use it as a Zimbra server. Are the "Split DNS" configuration all the things I have to do to make it work?

    As you can see, I'm a total begginer on this matter. So I appreciatte all your patience.

  2. #12
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,496
    Rep Power
    56

    Default

    Quote Originally Posted by emicenizo View Post
    I have a Red Hat installed on a PC, and i want to use it as a Zimbra server. Are the "Split DNS" configuration all the things I have to do to make it work?
    Yes, the DNS A & MX records plus the hosts file are what needs to be correct.

    The following are the things you need to fix:

    Code:
    zimbraloco.com.         2592000 IN      MX       mail.zimbraloco.com.  
    mail.zimbraloco.com.  2592000 IN      A       192.168.1.7
    
    zimbraloco.com.         2592000 IN      NS      ns1.zimbraloco.com.
    ns1.zimbraloco.com.  2592000 IN      A       192.168.1.7
    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.1.7 mail.zimbraloco.com mail
    Make those changes and run the 'Verify ...' commands again.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    First, I want to Thank you very very much for your infinite patience with rookies like me, he.

    I pasted those fixes... but now i cant run "service named start"

    Code:
    Error in named configuration:
    dns_rdata_fromtext: db.server.example.com:12: near 'mail.zimbraloco.com.': not a valid number
    zone zimbraloco.com/IN: loading from master file db.server.example.com failed: not a valid number
    zone zimbraloco.com/IN: not loaded due to errors.
    this is db.server.example.com:

    Code:
    ;       Addresses and other host information.
    ;
    $TTL 6000
    
    @       IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. (
                                   10118      ; Serial
                                   43200      ; Refresh
                                   3600       ; Retry
                                   3600000    ; Expire
                                   2592000 )  ; Minimum
    ;       Define the nameservers and the mail servers
    zimbraloco.com.         2592000 IN      MX       mail.zimbraloco.com.
    mail.zimbraloco.com.  2592000 IN      A       192.168.1.7
    
    zimbraloco.com.         2592000 IN      NS      ns1.zimbraloco.com.
    ns1.zimbraloco.com.  2592000 IN      A       192.168.1.7

  4. #14
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,496
    Rep Power
    56

    Default

    Sorry that was my fault, I can't imagine why I put those number sin there - must be my cop/paste skills have gone downhill.

    The records should look like this:

    Code:
    zimbraloco.com.         IN      MX       mail.zimbraloco.com.  
    mail.zimbraloco.com.    IN      A       192.168.1.7
    
    zimbraloco.com.         IN      NS      ns1.zimbraloco.com.
    ns1.zimbraloco.com.     IN      A       192.168.1.7
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    Quote Originally Posted by phoenix View Post
    Sorry that was my fault, I can't imagine why I put those number sin there - must be my cop/paste skills have gone downhill.

    The records should look like this:

    Code:
    zimbraloco.com.         IN      MX       mail.zimbraloco.com.  
    mail.zimbraloco.com.    IN      A       192.168.1.7
    
    zimbraloco.com.         IN      NS      ns1.zimbraloco.com.
    ns1.zimbraloco.com.     IN      A       192.168.1.7
    Same error... :S
    Code:
    [root@redHat redHat]# service named restart
    Deteniendo named:                                          [  OK  ]
    Iniciando named:
    Error in named configuration:
    db.server.example.com:3: no TTL specified; using SOA MINTTL instead
    dns_rdata_fromtext: db.server.example.com:10: near 'mail.zimbraloco.com.': not a valid number
    zone zimbraloco.com/IN: loading from master file db.server.example.com failed: not a valid number
    zone zimbraloco.com/IN: not loaded due to errors.
    _default/zimbraloco.com/IN: not a valid number
                                                               [FALLÓ]
    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. (
                                   10118      ; Serial
                                   43200      ; Refresh
                                   3600       ; Retry
                                   3600000    ; Expire
                                   2592000 )  ; Minimum
    ;       Define the nameservers and the mail servers
    zimbraloco.com.         IN      MX       mail.zimbraloco.com.
    mail.zimbraloco.com.    IN      A       192.168.1.7
    
    zimbraloco.com.         IN      NS      ns1.zimbraloco.com.
    ns1.zimbraloco.com.     IN      A       192.168.1.7
    Ideas?

  6. #16
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,496
    Rep Power
    56

    Default

    Quote Originally Posted by emicenizo View Post
    Ideas?
    Let's say that I'm either incompetent or just having a bad day. One important piece of information is missing, the priority on the MX record, as follows:
    Code:
    zimbraloco.com.         IN      MX      20 mail.zimbraloco.com.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    All right! I guess we are in our way now...

    Code:
    [zimbra@mail zzcs-7.1.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: 29137
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      ANY
    
    ;; ANSWER SECTION:
    zimbraloco.com.         2592000 IN      NS      ns1.zimbraloco.com.
    zimbraloco.com.         2592000 IN      SOA     zimbraloco.com. ecenizo.zimbraloco.com. 10118 43200 3600 3600000 2592000
    zimbraloco.com.         2592000 IN      MX      10 mail.zimbraloco.com.
    
    ;; ADDITIONAL SECTION:
    ns1.zimbraloco.com.     2592000 IN      A       192.168.0.7
    mail.zimbraloco.com.    2592000 IN      A       192.168.0.7
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Aug  1 15:21:42 2011
    ;; MSG SIZE  rcvd: 147
    Code:
    [zimbra@mail 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: 11169
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;zimbraloco.com.                        IN      MX
    
    ;; ANSWER SECTION:
    zimbraloco.com.         2592000 IN      MX      10 mail.zimbraloco.com.
    
    ;; AUTHORITY SECTION:
    zimbraloco.com.         2592000 IN      NS      ns1.zimbraloco.com.
    
    ;; ADDITIONAL SECTION:
    mail.zimbraloco.com.    2592000 IN      A       192.168.0.7
    ns1.zimbraloco.com.     2592000 IN      A       192.168.0.7
    
    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Aug  1 15:22:15 2011
    ;; MSG SIZE  rcvd: 103
    Code:
    [zimbra@mail zzcs-7.1.1_GA_3196.RHEL6_64.20110527010625]$ host $(hostname)
    mail.zimbraloco.com has address 192.168.0.7
    Code:
    [redHat@mail ~]$ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    192.168.0.7 zimbraloco.com mail
    Still i have this message when installing Zimbra:

    Code:
    Setting defaults...No results returned for A lookup of zimbraloco.com                       
    Checked nameservers:                                                                        
            127.0.0.1                                                                           
    
    DNS ERROR resolving zimbraloco.com
    It is suggested that the hostname be resolveable via DNS
    Change hostname [Yes]
    So, i contonued like this:

    Code:
    Please enter the logical hostname for this host [zimbraloco.com] mail.zimbraloco.com
    
    
    DNS ERROR resolving MX for mail.zimbraloco.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]                                               
    Create domain: [mail.zimbraloco.com] zimbraloco.com                     
            MX: mail.zimbraloco.com (192.168.0.7)                           
    
            Interface: 192.168.0.7
            Interface: 127.0.0.1  
    done.
    Checking for port conflicts   
    Port conflict detected: 25 (zimbra-mta)
    Port conflicts detected! - Any key to continue
    There! But... when:
    Code:
    [zimbra@mail 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.
    Zimbra wont start!

    Why is this last error? It has to do with the port conflicts previusly encountered?

  8. #18
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,496
    Rep Power
    56

    Default

    Your hosts file is still incorrect, you didn't follow the example I gave you earlier. The format should be as follows:

    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.0.7 mail.zimbraloco.com mail
    You didn't post the contents of your resolv.conf but I also assume that it reflects the correct IP of your DNS server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

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

    Default

    Quote Originally Posted by phoenix View Post
    Your hosts file is still incorrect, you didn't follow the example I gave you earlier. The format should be as follows:

    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.0.7 mail.zimbraloco.com mail
    You didn't post the contents of your resolv.conf but I also assume that it reflects the correct IP of your DNS server?
    Code:
    [root@mail ~]# cat /etc/resolv.conf 
    search zimbraloco.com
    nameserver 127.0.0.1
    This is my resolv.conf, just as the SplitDNS example.

  10. #20
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,496
    Rep Power
    56

    Default

    Quote Originally Posted by emicenizo View Post
    Code:
    [root@mail ~]# cat /etc/resolv.conf 
    search zimbraloco.com
    nameserver 127.0.0.1
    This is my resolv.conf, just as the SplitDNS example.
    That's fine but you still need to fix the hosts file.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Page 2 of 3 FirstFirst 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
  •