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 03-12-2009, 01:09 AM
Junior Member
 
Posts: 7
Default [SOLVED] DNS not resolving localhost

My installation terminates with the followig message :
Quote:
Operations logged to /tmp/zmsetup.03122009-115300.log
Setting defaults...can't resolve "localhost" to address at /opt/zimbra/zimbramon/lib/i386-linux-thread-multi/Net/DNS/Resolver/Base.pm line 748.
When I do a 'nslookup localhost' it gives me
Quote:
** server can't find localhost: NXDOMAIN
My 'localhost -f' returns the FQDN mail.domain.com

I am trying to configure Zimbra behind a firewall. My internal IP is 10.10.10.4. The /etc/hosts, named.conf and zone files are as follows :

/etc/hosts
Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.10.10.4 mail.domain.com mail
/var/named/chroot/etc/named.conf
Quote:
//
// Sample named.conf BIND DNS server 'named' configuration file
// for the Red Hat BIND distribution.
//
// See the BIND Administrator's Reference Manual (ARM) for details, in:
// file:///usr/share/doc/bind-*/arm/Bv9ARM.html
// Also see the BIND Configuration GUI : /usr/bin/system-config-bind and
// its manual.
//
options
{
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/
query-source port 53;
query-source-v6 port 53;

// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";

};
zone "mail.domain.com" IN {
type master;
file "mail.domain.com";
allow-update{none;};
};

zone "locahost." IN {
type master;
file "localhost.zone";
allow-update{none;};
};

include "/etc/rndc.key";
my zone file for mail.domain.com
Quote:
$TTL 86400
@ IN SOA @ mail.domain.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ IN NS mail.domain.com.
IN MX 10 mail.domain.com.
IN A 10.0.10.4
zone file for localhost.zone
Quote:
$TTL 86400
@ IN SOA @ root (
2009031201 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS @
IN A 127.0.0.1
IN AAAA ::1

~
The installation stops with the error given in the begining. My local host is not resolving to 127.0.0.1. I hope this is the problem. Can you please help.

Regards-
Srvlsn
Reply With Quote
  #2 (permalink)  
Old 03-12-2009, 01:16 AM
Moderator
 
Posts: 7,928
Default

What is in /etc/resolv.conf and /etc/nsswitch.conf ?
__________________
Reply With Quote
  #3 (permalink)  
Old 03-12-2009, 01:31 AM
Junior Member
 
Posts: 7
Default One mistake in my earlier post

In the zone file for mail.domain.com, the IP I mentioned was 10.0.10.4. It should be 10.10.10.4. I have corrected this. However, the status remains same.....

My /etc/resolve.conf contains "nameserver localhost"

and /etc/nsswitch.conf is as follows (Have omitted some initial comment lines)
Quote:
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis

passwd: files
shadow: files
group: files

#hosts: db files nisplus nis dns
hosts: files dns

# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files

netgroup: nisplus

publickey: nisplus

automount: files nisplus
aliases: files nisplus
Reply With Quote
  #4 (permalink)  
Old 03-12-2009, 01:44 AM
Moderator
 
Posts: 7,928
Default

/etc/resolv.conf should have
Code:
nameserver 10.10.10.4
__________________
Reply With Quote
  #5 (permalink)  
Old 03-12-2009, 02:12 AM
Junior Member
 
Posts: 7
Default

It WORKED !!!
Thanks a million....

Regards-
Srvlsn
Reply With Quote
  #6 (permalink)  
Old 03-12-2009, 02:18 AM
Moderator
 
Posts: 7,928
Default

For reference nameserver should always point to the IP of the DNS server and not the actual FQDN. Glad all is working now
__________________
Reply With Quote
  #7 (permalink)  
Old 07-22-2010, 10:00 PM
Starter Member
 
Posts: 1
Question Learner

my vi /etc/hosts configuration is
127.0.0.1 localhost.localdomain localhost

123.176.41.29 mail.domain.com mail


my vi etc/resolv.conf is
nameserver 202.53.8.8
nameserver 202.53.8.9
nameserver 123.176.41.29

my vi etc/sysconfig/network is
NETWORKING=yes
HOSTNAME=mail

and i configured my pc as a DNS itself with giving the above 123.176.41.29 in both forward and reverse lookup but it is still asking for MX record .
So this is the problem, any suggestions on this please to try out
Reply With Quote
  #8 (permalink)  
Old 07-27-2010, 12:30 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by sudheervk View Post
So this is the problem, any suggestions on this please to try out
The answer is alread in this thread (and all over the forums), you have too many entries in your resolv.conf when you should only have one.
__________________
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.