Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS6 Server and wanted to install Zimbra 7. I was getting an /etc/hosts error and found out that I need to run a local DNS Server due to split-dns issues.

I installed Bind and am trying to configure it.

In: /var/named/chroot/etc/named.conf

options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    forwarders { ; ;

include "/etc/rndc.key";
// Specify that this server is the master for
zone "" {
    type master;
    file "";

I dont know is using Google Public DNS is right here.

In: /var/named/chroot/var/named/

@   IN  SOA     @ root (
                           10118      ; Serial
                           43200      ; Refresh
                           3600   ; Retry
                           3600000    ; Expire
                           2592000 )  ; Minimum

           IN      NS      @
           IN      A
           IN      MX      10

Bind start correctly I switch the DNS servers on the NIC to and try to install Zimbra again and I get the same error that started this process of:

`ERROR: Installation can not proceeed. Please fix your /etc/hosts file to contain:

Where is the ip address of the host, is the FULLY QUALIFIED host name, and is the (optional) hostname-only portion`

my /etc/hosts is right with: localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

So I am not sure what I am doing wrong.

share|improve this question
up vote 0 down vote accepted

From the error message, it looks like the installation requires including the FQDN in the /etc/hosts file. You can get your FQDN using:

$ hostname -f
share|improve this answer

Try not to confuse host names and domain names, they're different by subtly so.

In your named.conf file, you specify the domain name as which means the 'mail' subdomain of, which is likely not what you want (there would be hosts and in that domain). You probably should put there to define this as the DNS record for the domain.

And in your hosts file, you put, which is your domain name. You should put the actual hostname which is ''. The /etc/hosts line you want is: mail

Also, you have defined mail as the MX server in the file, but you do not have an A record that defines the address for it. So there should be a line like: mail IN A

Good luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.