Menu

#130 Zimbra setup err:DNS ERROR resolving localhost.localdomain

open
nobody
None
5
2014-08-27
2011-08-21
x x x
No

DNS ERROR resolving localhost.localdomain
It is suggested that the hostname be resolveable via DNS
Change hostname [Yes] www.baidu.com
A Yes/No answer is required
Change hostname [Yes] Yes
Please enter the logical hostname for this host [localhost.localdomain] www.baidu.com

DNS ERROR resolving MX for www.baidu.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] No
done.
Checking for port conflicts
Port conflict detected: 25 (zimbra-mta)
Port conflicts detected! - Any key to continue

Discussion

  • x x x

    x x x - 2011-08-21

    [root@localhost zcs-7.1.2_GA_3268.RHEL5.20110804130919]# ./install.sh

    Operations logged to /tmp/install.log.2983
    Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND

    PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
    ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
    FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
    THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
    THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
    AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

    License Terms for the Zimbra Collaboration Suite:
    http://www.zimbra.com/license/zimbra_public_eula_2.1.html

    Do you agree with the terms of the software license agreement? [N] Y

    Checking for prerequisites...
    FOUND: NPTL
    FOUND: sudo-1.6.9p17-3
    FOUND: libidn-0.6.5-1.1
    FOUND: gmp-4.1.4-10
    FOUND: /usr/lib/libstdc++.so.6
    Checking for suggested prerequisites...
    FOUND: perl-5.8.8
    MISSING: sysstat does not appear to be installed.
    FOUND: sqlite

    ###WARNING###

    The suggested version of one or more packages is not installed.
    This could cause problems with the operation of Zimbra.

    Do you wish to continue? [N] Y
    Prerequisite check complete.

    Checking for installable packages

    Found zimbra-core
    Found zimbra-ldap
    Found zimbra-logger
    Found zimbra-mta
    Found zimbra-snmp
    Found zimbra-store
    Found zimbra-apache
    Found zimbra-spell
    Found zimbra-memcached
    Found zimbra-proxy

    Select the packages to install

    Install zimbra-ldap [Y] Y

    Install zimbra-logger [Y] Y

    Install zimbra-mta [Y] Y

    Install zimbra-snmp [Y] Y

    Install zimbra-store [Y] Y

    Install zimbra-apache [Y] Y

    Install zimbra-spell [Y] Y

    Install zimbra-memcached [N] Y

    Install zimbra-proxy [N] Y
    Checking required space for zimbra-core
    checking space for zimbra-store

    Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell
    zimbra-memcached
    zimbra-proxy

    The system will be modified. Continue? [N] Y

    Removing /opt/zimbra
    Removing zimbra crontab entry...done.
    done.
    Cleaning up zimbra init scripts...done.
    Cleaning up /etc/ld.so.conf...done.
    Cleaning up /etc/prelink.conf...done.
    Cleaning up /etc/security/limits.conf...done.

    Finished removing Zimbra Collaboration Suite.

    Installing packages

    zimbra-core......zimbra-core-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-ldap......zimbra-ldap-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-logger......zimbra-logger-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-mta......zimbra-mta-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-snmp......zimbra-snmp-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-store......zimbra-store-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-apache......zimbra-apache-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-spell......zimbra-spell-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-memcached......zimbra-memcached-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-proxy......zimbra-proxy-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    Operations logged to /tmp/zmsetup.08202011-033408.log
    Installing LDAP configuration database...done.
    Setting defaults...No results returned for A lookup of localhost.localdomain
    Checked nameservers:
    192.168.1.1

    DNS ERROR resolving localhost.localdomain
    It is suggested that the hostname be resolveable via DNS
    Change hostname [Yes] www.baidu.com
    A Yes/No answer is required
    Change hostname [Yes] Yes
    Please enter the logical hostname for this host [localhost.localdomain] www.baidu.com

    DNS ERROR resolving MX for www.baidu.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes] No
    done.
    Checking for port conflicts
    Port conflict detected: 25 (zimbra-mta)
    Port conflicts detected! - Any key to continue

    Main menu

    1) Common Configuration:
    2) zimbra-ldap: Enabled
    3) zimbra-store: Enabled
    +Create Admin User: yes
    +Admin user to create: admin@www.baidu.com
    ******* +Admin Password UNSET
    +Anti-virus quarantine user: virus-quarantine.mdvravhj@www.baidu.com
    +Enable automated spam training: yes
    +Spam training user: spam.ahdke8xrwo@www.baidu.com
    +Non-spam(Ham) training user: ham.h5n9escia@www.baidu.com
    +SMTP host: www.baidu.com
    +Web server HTTP port: 80
    +Web server HTTPS port: 443
    +Web server mode: http
    +IMAP server port: 7143
    +IMAP server SSL port: 7993
    +POP server port: 7110
    +POP server SSL port: 7995
    +Use spell check server: yes
    +Spell server URL: http://www.baidu.com:7780/aspell.php
    +Enable version update checks: TRUE
    +Enable version update notifications: TRUE
    +Version update notification email: admin@localhost.localdomain
    +Version update source email: admin@localhost.localdomain

    4) zimbra-mta: Enabled
    5) zimbra-snmp: Enabled
    6) zimbra-logger: Enabled
    7) zimbra-spell: Enabled
    8) zimbra-proxy: Enabled
    9) Default Class of Service Configuration:
    r) Start servers after configuration yes
    s) Save config to file
    x) Expand menu
    q) Quit

    Address unconfigured (**) items (? - help)

     
  • x x x

    x x x - 2011-08-21
    • summary: Zimbra setup err: --> Zimbra setup err:DNS ERROR resolving localhost.localdomain
     
  • x x x

    x x x - 2011-08-21

    Configure DNS

    In order to send and receive email, the Zimbra MTA must be configured in DNS with both A and MX records. For sending mail, the MTA uses DNS to resolve hostnames and email-routing information. To receive mail, the MX record must be configured correctly to route the message to the mail server.

    During the installation process, ZCS checks to see if you have an MX record correctly configured. If it is not, an error is displayed suggesting that the domain name have an MX record configured in DNS.

    You must configure a relay host if you do not enable DNS. After ZCS is installed, go to the Global Settings>MTA tab on the administration console and uncheck Enable DNS lookups. Enter the relay MTA address to use for external delivery.

    Note: Even if a relay host is configured, an MX record is still required if the ZCS server is going to receive email from the Internet.

    http://www.zimbra.com/docs/ne/5.0.11/single_server_install/

     
  • x x x

    x x x - 2011-08-21

    Linux 查看网络信息,路由信息和DNS信息的命令

    ifconfig 可以查看网络设备及IP地址,子网掩码等信息

    route 可以查看路由信息

    DNS直接查看文件:

    [root@kcn-110mw]#cat /etc/resolv.conf

     
  • x x x

    x x x - 2011-08-22

    配置文件位于:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=static
    IPADDR=1Array2.168.0.3
    NETMASK=255.255.255.0
    GATEWAY=1Array2.168.0.1
    使IP地址生效:
    /sbin/ifdown eth0
    /sbin/ifup eth0

    通知网关更新信息:
    /etc/init.d/network restart

     
  • x x x

    x x x - 2011-08-22

    Aug 21 08:37:07 zimbra named[4989]: loading configuration from '/etc/named.conf'
    Aug 21 08:37:07 zimbra named[4989]: none:0: open: /etc/named.conf: permission denied

     
  • x x x

    x x x - 2011-08-22

    主要有两个问题:

    1:linux系统log的路径 /var/log

    2: 系统级别log API:

     
  • x x x

    x x x - 2011-08-22

    [root@zimbra etc]# cd /etc
    [root@zimbra etc]# ls -trl | grep -i named.conf
    -rw-r----- 1 root root 1139 Aug 20 07:03 named.conf
    [root@zimbra etc]# chown root:named named.conf
    [root@zimbra etc]# ls -trl | grep -i named.conf
    -rw-r----- 1 root named 1139 Aug 20 07:03 named.conf
    [root@zimbra etc]# service named restart
    Stopping named: [ OK ]
    Starting named: [ OK ]

     
  • x x x

    x x x - 2011-08-22

    Verifying integrity of message store databases. This may take a while.
    Error: assertion '-r /opt/zimbra/conf/my.cnf' failed

     
  • x x x

    x x x - 2011-08-22

    Aug 20 00:01:18 localhost kernel: NET: Registered protocol family 16
    [root@zimbra log]# pwd
    /var/log
    [root@zimbra log]# vi messages

     
  • x x x

    x x x - 2011-08-22

    启动zimbra命令:

    /opt/zimbra/bin/zmcontrol stop

    /opt/zimbra/bin/zmcontrol start

    邮件系统的启动:

    /opt/zimbra/bin/zmmailboxdctl stop

    /opt/zimbra/bin/zmmailboxdctl start

    /opt/zimbra/bin/zmmailboxdctl restart

     
  • x x x

    x x x - 2011-08-22

    DNS ERROR resolving MX for zimbra.sunsea.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes] sunsea.com
    A Yes/No answer is required
    Change domain name? [Yes] Yes
    Create domain: [zimbra.sunsea.com] sunsea.com
    MX: mx.online.net (88.190.253.60)
    MX: mx-cache.online.net (88.190.253.61)

    Interface: 10.0.2.15
    Interface: 192.168.56.210
    Interface: 127.0.0.1

    DNS ERROR - none of the MX records for sunsea.com
    resolve to this host

     
  • x x x

    x x x - 2011-08-22

    二、如何查看主机IP信息

    1. 通过hostname指令来获取主机及IP信息

    hostname –a: 获取主机别名。

    hostname –d: 获取DNS域名。

    hostname –f: 获取FQDN名称。

    hostname –i: 获取主机的IP地址。

    hostname –s: 获取域名的netbios名称。

     
  • x x x

    x x x - 2011-08-22

    A解析只是用来域名主机和ip进行对应比如www.test.com和11.11.11.11对应。
    而mx是域名和ip进行对应,比如test.com和11.11.11.12对应,即任何@test.com的邮件都储存在11.11.11.12这台服务器上。

     
  • x x x

    x x x - 2011-08-22

    [root@zimbra zcs-7.1.2_GA_3268.RHEL5.20110804130919]# ./install.sh

    Operations logged to /tmp/install.log.11488
    Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND

    PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
    ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
    FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
    THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
    THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
    AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

    License Terms for the Zimbra Collaboration Suite:
    http://www.zimbra.com/license/zimbra_public_eula_2.1.html

    Do you agree with the terms of the software license agreement? [N] Y

    Checking for prerequisites...
    FOUND: NPTL
    FOUND: sudo-1.6.9p17-3
    FOUND: libidn-0.6.5-1.1
    FOUND: gmp-4.1.4-10
    FOUND: /usr/lib/libstdc++.so.6
    Checking for suggested prerequisites...
    FOUND: perl-5.8.8
    MISSING: sysstat does not appear to be installed.
    FOUND: sqlite

    ###WARNING###

    The suggested version of one or more packages is not installed.
    This could cause problems with the operation of Zimbra.

    Do you wish to continue? [N] Y
    Prerequisite check complete.

    Checking for installable packages

    Found zimbra-core
    Found zimbra-ldap
    Found zimbra-logger
    Found zimbra-mta
    Found zimbra-snmp
    Found zimbra-store
    Found zimbra-apache
    Found zimbra-spell
    Found zimbra-memcached
    Found zimbra-proxy

    Select the packages to install

    Install zimbra-ldap [Y]

    Install zimbra-logger [Y]

    Install zimbra-mta [Y]

    Install zimbra-snmp [Y]

    Install zimbra-store [Y]

    Install zimbra-apache [Y]

    Install zimbra-spell [Y]

    Install zimbra-memcached [N]

    Install zimbra-proxy [N]
    Checking required space for zimbra-core
    checking space for zimbra-store

    Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

    The system will be modified. Continue? [N] Y

    Removing /opt/zimbra
    Removing zimbra crontab entry...done.
    done.
    Cleaning up zimbra init scripts...done.
    Cleaning up /etc/ld.so.conf...done.
    Cleaning up /etc/prelink.conf...done.
    Cleaning up /etc/security/limits.conf...done.

    Finished removing Zimbra Collaboration Suite.

    Installing packages

    zimbra-core......zimbra-core-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-ldap......zimbra-ldap-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-logger......zimbra-logger-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-mta......zimbra-mta-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-snmp......zimbra-snmp-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-store......zimbra-store-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-apache......zimbra-apache-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    zimbra-spell......zimbra-spell-7.1.2_GA_3268.RHEL5-20110804130919.i386.rpm...done
    Operations logged to /tmp/zmsetup.08212011-121738.log
    Installing LDAP configuration database...done.
    Setting defaults...

    DNS ERROR resolving MX for zimbra.sunsea.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes] Yes
    Create domain: [zimbra.sunsea.com] sunsea.com
    MX: zimbra.sunsea.com (192.168.56.210)

    Interface: 10.0.2.15
    Interface: 192.168.56.210
    Interface: 127.0.0.1
    done.
    Checking for port conflicts

    Main menu

    1) Common Configuration:
    2) zimbra-ldap: Enabled
    3) zimbra-store: Enabled
    +Create Admin User: yes
    +Admin user to create: admin@sunsea.com
    ******* +Admin Password UNSET
    +Anti-virus quarantine user: virus-quarantine.kdoxsbfp@sunsea.com
    +Enable automated spam training: yes
    +Spam training user: spam.wokqsiduyz@sunsea.com
    +Non-spam(Ham) training user: ham.wds50cb4dx@sunsea.com
    +SMTP host: zimbra.sunsea.com
    +Web server HTTP port: 80
    +Web server HTTPS port: 443
    +Web server mode: http
    +IMAP server port: 143
    +IMAP server SSL port: 993
    +POP server port: 110
    +POP server SSL port: 995
    +Use spell check server: yes
    +Spell server URL: http://zimbra.sunsea.com:7780/aspell.php
    +Configure for use with mail proxy: FALSE
    +Configure for use with web proxy: FALSE
    +Enable version update checks: TRUE
    +Enable version update notifications: TRUE
    +Version update notification email: admin@sunsea.com
    +Version update source email: admin@sunsea.com

    4) zimbra-mta: Enabled
    5) zimbra-snmp: Enabled
    6) zimbra-logger: Enabled
    7) zimbra-spell: Enabled
    8) Default Class of Service Configuration:
    r) Start servers after configuration yes
    s) Save config to file
    x) Expand menu
    q) Quit

    Address unconfigured (**) items (? - help) 3

    Store configuration

    1) Status: Enabled
    2) Create Admin User: yes
    3) Admin user to create: admin@sunsea.com
    ** 4) Admin Password UNSET
    5) Anti-virus quarantine user: virus-quarantine.kdoxsbfp@sunsea.com
    6) Enable automated spam training: yes
    7) Spam training user: spam.wokqsiduyz@sunsea.com
    8) Non-spam(Ham) training user: ham.wds50cb4dx@sunsea.com
    9) SMTP host: zimbra.sunsea.com
    10) Web server HTTP port: 80
    11) Web server HTTPS port: 443
    12) Web server mode: http
    13) IMAP server port: 143
    14) IMAP server SSL port: 993
    15) POP server port: 110
    16) POP server SSL port: 995
    17) Use spell check server: yes
    18) Spell server URL: http://zimbra.sunsea.com:7780/aspell.php
    19) Configure for use with mail proxy: FALSE
    20) Configure for use with web proxy: FALSE
    21) Enable version update checks: TRUE
    22) Enable version update notifications: TRUE
    23) Version update notification email: admin@sunsea.com
    24) Version update source email: admin@sunsea.com

    Select, or 'r' for previous menu [r] 4

    Password for admin@sunsea.com (min 6 characters): [LHFfvxwOu] test123

    Store configuration

    1) Status: Enabled
    2) Create Admin User: yes
    3) Admin user to create: admin@sunsea.com
    4) Admin Password set
    5) Anti-virus quarantine user: virus-quarantine.kdoxsbfp@sunsea.com
    6) Enable automated spam training: yes
    7) Spam training user: spam.wokqsiduyz@sunsea.com
    8) Non-spam(Ham) training user: ham.wds50cb4dx@sunsea.com
    9) SMTP host: zimbra.sunsea.com
    10) Web server HTTP port: 80
    11) Web server HTTPS port: 443
    12) Web server mode: http
    13) IMAP server port: 143
    14) IMAP server SSL port: 993
    15) POP server port: 110
    16) POP server SSL port: 995
    17) Use spell check server: yes
    18) Spell server URL: http://zimbra.sunsea.com:7780/aspell.php
    19) Configure for use with mail proxy: FALSE
    20) Configure for use with web proxy: FALSE
    21) Enable version update checks: TRUE
    22) Enable version update notifications: TRUE
    23) Version update notification email: admin@sunsea.com
    24) Version update source email: admin@sunsea.com

    Select, or 'r' for previous menu [r] r

    Main menu

    1) Common Configuration:
    2) zimbra-ldap: Enabled
    3) zimbra-store: Enabled
    4) zimbra-mta: Enabled
    5) zimbra-snmp: Enabled
    6) zimbra-logger: Enabled
    7) zimbra-spell: Enabled
    8) Default Class of Service Configuration:
    r) Start servers after configuration yes
    s) Save config to file
    x) Expand menu
    q) Quit

    *** CONFIGURATION COMPLETE - press 'a' to apply
    Select from menu, or press 'a' to apply config (? - help) a
    Save configuration data to a file? [Yes] Yes
    Save config in file: [/opt/zimbra/config.18889]
    Saving config in /opt/zimbra/config.18889...done.
    The system will be modified - continue? [No] Yes
    Operations logged to /tmp/zmsetup.08212011-121738.log
    Setting local config values...done.
    Setting up CA...done.
    Deploying CA to /opt/zimbra/conf/ca