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 08-22-2009, 09:23 AM
Junior Member
 
Posts: 7
Default Ubuntu DNS problem

This thread got so close to answering my question, but then it fell off!!!

I'm trying to get Zimbra Open Source running on a new installation of Ubuntu 8.04. Everything was going along great, until it began configuration and got an error.

I reviewed the log and this is what I found:
Code:
Sat Aug 22 09:16:46 2009 zimbra-ldap is enabled
Sat Aug 22 09:16:46 2009 Initializing ldap...
Sat Aug 22 09:16:46 2009 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
IO::Socket::INET: Bad hostname 'mydomain.com' at /opt/zimbra/libexec/zmldapinit line 160.
Sat Aug 22 09:17:28 2009 failed. (5632)
Sat Aug 22 09:17:28 2009

ERROR

Sat Aug 22 09:17:28 2009

Configuration failed

I think (??) I followed the Ubuntu 8.04 LTS Server Install Guide to the "T", but I must have missed something. I've reviewed the guide and my system several times and can't find what I'm missing. ANY help would be greatly appreciated!

Here's what I've got:

HOSTS:
Code:
127.0.0.1       localhost.localdomain   localhost
172.17.2.10     mail.mydomain.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

RESOLV.CONF:
Code:
search mydomain.com
nameserver 172.17.2.10

db.mydomain.com:
Code:
;
; BIND data file for mydomain.com
;
$TTL    604800
@       IN      SOA     mail.mydomain.com. admin.mydomain.com. {
                         090821         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 }       ; Negative Cache TTL
;
@       IN      NS      mail
        IN      MX      10 mail
        IN      A       172.17.2.10
mail    IN      A       172.17.2.10

dig mydomain.com any
Code:
; <<>> DiG 9.4.2-P2 <<>> mydomain.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3027
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

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

;; Query time: 0 msec
;; SERVER: 172.17.2.10#53(172.17.2.10)
;; WHEN: Sat Aug 22 10:00:09 2009
;; MSG SIZE  rcvd: 43

dig mydomain.mx
Code:
; <<>> DiG 9.4.2-P2 <<>> mydomain.mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20908
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.mx.      IN      A

;; AUTHORITY SECTION:
mx.                     1800    IN      SOA     m.mx-ns.mx. hostmaster.nic.mx. 68 3600 900 604800 1800

;; Query time: 105 msec
;; SERVER: 172.17.2.10#53(172.17.2.10)
;; WHEN: Sat Aug 22 10:01:01 2009
;; MSG SIZE  rcvd: 101

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

Thanks in advance for any help you might offer!

Last edited by phoenix; 08-23-2009 at 08:24 AM..
Reply With Quote
  #2 (permalink)  
Old 08-22-2009, 09:26 AM
Partner (VAR/HSP)
 
Posts: 425
Default

Well, "servfail" tells you that there is an error in your Bind configuration!
Reply With Quote
  #3 (permalink)  
Old 08-22-2009, 09:35 AM
Junior Member
 
Posts: 7
Default

Thanks for the quick reply! Does anything stand out to you in here?

named.conf.options
Code:
options {
        directory "/var/cache/bind";

        query-source address * port 53;

        forwarders {
                XX.XX.X.X; XX.XXX.XXX.XXX;
        };

        auth-nxdomain no;    # conform to RFC1035
        // listen-on-v6 { any; };
};
My named.conf.local is:
Code:
        zone "mydomain.com"        {
                type master;
                file "/etc/bind/db.mydomain.com";
        };
Reply With Quote
  #4 (permalink)  
Old 08-22-2009, 09:37 AM
Partner (VAR/HSP)
 
Posts: 425
Default

Not explicitly. Just follow the Bind setup guide posted in the Wiki here somewhere. That works.
Reply With Quote
  #5 (permalink)  
Old 08-22-2009, 09:46 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by aaros View Post
This thread got so close to answering my question, but then it fell off!!!
Did you make the change to nsswitch.conf mentioned in the first post?
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 08-22-2009, 09:56 AM
Junior Member
 
Posts: 7
Default

I read through that, and I think I've got it:

Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
Unless I misunderstood the thread...?
Reply With Quote
  #7 (permalink)  
Old 08-22-2009, 10:07 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

You hosts line should be the following:

Code:
hosts:          files dns mdns
not the entry that you have.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 08-23-2009, 08:15 AM
Junior Member
 
Posts: 7
Default Still no go...

Thanks for your patience with me on this -- and your help.

Quote:
Originally Posted by phoenix View Post
You hosts line should be the following:

Code:
hosts:          files dns mdns
not the entry that you have.
I've made the modification and restarted. I'm still getting the "SERVFAIL" error.

I ran:
Code:
aaros@mail:/$ host mydomain.com
Host mydomain.com.mydomain.com not found: 2(SERVFAIL)
Is that an indicator of where the problem might be?

Do you have any other ideas?

Many thanks!

Ryan
Reply With Quote
  #9 (permalink)  
Old 08-23-2009, 08:29 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

This thread really is different to the original place you posted so I've split it off into it's own thread.

A better command to run would be the following:

Code:
host `hostname`  <-- note the backticks not single quotes
although I'd expect that to give you the same result.

At the moment I'm somewhat stumped with this, your DNS appears to be OK and it should work. A couple of questions: is this a 64bit installation; is it in a VM of any kind; how much RAM on this server?
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 08-23-2009, 10:58 AM
Junior Member
 
Posts: 7
Default

Right on the money. It did exactly as you suspected:

Code:
aaros@mail:/$ host `hostname`
Host mail not found: 3(NXDOMAIN)
It's a 32Bit Install, and my server has 2 GB RAM.

Is there any other diagnotic information I can pull that might help with this?

Thanks very much.
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.