| 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.
|  | 
08-22-2011, 09:00 AM
| | | Installing ZCS on CentOS 5.5: zmsetup.pl/zmldapinit error Hi,
zmldapinit is kicking out the following error, when I try to run zmsetup.pl:
IO::Socket::INET: Bad hostname '' at /opt/zimbra/libexec/zmldapinit line 137.
Mon Aug 22 15:29:20 2011 failed. (5632)
Before seeing this, I was having trouble with my host's name not resolving, A record and MX wise, but I believe I've set up the necessary entries for that. At any rate, the DNS-related errors that I was seeing before are gone.
I'm new to this forum, so if this problem has already been addressed in a different thread, please point me to it. I didn't have much luck when I tried to search for something.
Thanks,
-Anthony
Mon Aug 22 15:29:08 2011 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
IO::Socket::INET: Bad hostname '' at /opt/zimbra/libexec/zmldapinit line 137.
Mon Aug 22 15:29:20 2011 failed. (5632)
Mon Aug 22 15:29:20 2011
ERROR
Mon Aug 22 15:29:20 2011
Configuration failed
Mon Aug 22 15:29:20 2011 Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to
Mon Aug 22 15:29:20 2011 complete the configuration.
Mon Aug 22 15:29:20 2011
Errors have been logged to /tmp/zmsetup.08222011-152658.log | 
08-22-2011, 09:07 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | Go to the Split DNS article and run all the commands in the 'Verify....' section and post the output here.
__________________
Regards
Bill
| 
08-22-2011, 10:20 AM
| | | Code: # dig kidquipment.com mx
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52224
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 2, ADDITIONAL: 7
;; QUESTION SECTION:
;kidquipment.com. IN MX
;; ANSWER SECTION:
kidquipment.com. 3600 IN MX 1 aspmx.l.google.com.
kidquipment.com. 3600 IN MX 5 alt1.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 5 alt2.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 9 aspmx2.googlemail.com.
kidquipment.com. 3600 IN MX 9 aspmx3.googlemail.com.
;; AUTHORITY SECTION:
kidquipment.com. 90872 IN NS ns2.domaindiscover.com.
kidquipment.com. 90872 IN NS ns1.domaindiscover.com.
;; ADDITIONAL SECTION:
aspmx.l.google.com. 286 IN A 74.125.157.27
alt1.aspmx.l.google.com. 124 IN A 74.125.113.27
alt2.aspmx.l.google.com. 82 IN A 209.85.143.27
aspmx2.googlemail.com. 2285 IN A 74.125.43.27
aspmx3.googlemail.com. 2285 IN A 74.125.127.27
ns1.domaindiscover.com. 1001 IN A 216.104.162.3
ns2.domaindiscover.com. 1001 IN A 216.104.163.3
;; Query time: 70 msec
;; SERVER: 216.154.208.4#53(216.154.208.4)
;; WHEN: Mon Aug 22 17:08:32 2011
;; MSG SIZE rcvd: 326 Code: # dig kidquipment.com any
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25315
;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 2, ADDITIONAL: 5
;; QUESTION SECTION:
;kidquipment.com. IN ANY
;; ANSWER SECTION:
kidquipment.com. 3600 IN TXT "google-site-verification=A8wMF17BhMC3NQ4ygw-YncXWY2sdlei-CxTWE4R4u3w"
kidquipment.com. 3600 IN SOA ns1.tierra.net. hostmaster.tierra.net. 2011082104 7200 1800 604800 28800
kidquipment.com. 3600 IN MX 1 aspmx.l.google.com.
kidquipment.com. 3600 IN MX 5 alt1.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 5 alt2.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 9 aspmx2.googlemail.com.
kidquipment.com. 3600 IN MX 9 aspmx3.googlemail.com.
kidquipment.com. 3600 IN NS ns1.tierra.net.
kidquipment.com. 3600 IN NS ns2.tierra.net.
;; AUTHORITY SECTION:
kidquipment.com. 3600 IN NS ns2.tierra.net.
kidquipment.com. 3600 IN NS ns1.tierra.net.
;; ADDITIONAL SECTION:
aspmx.l.google.com. 232 IN A 74.125.157.27
alt1.aspmx.l.google.com. 70 IN A 74.125.113.27
alt2.aspmx.l.google.com. 28 IN A 209.85.143.27
aspmx2.googlemail.com. 2231 IN A 74.125.43.27
aspmx3.googlemail.com. 2231 IN A 74.125.127.27
;; Query time: 68 msec
;; SERVER: 216.154.208.4#53(216.154.208.4)
;; WHEN: Mon Aug 22 17:09:25 2011
;; MSG SIZE rcvd: 445 Code: # host $(hostname)
directory-srv.kidquipment.com has address 68.169.54.94
directory-srv.kidquipment.com mail is handled by 10 mx10.directory-srv.kidquipment.com. Code: cat /etc/resolv.conf
########## Automatically generated by OnApp (2.1.0)
domain kidquipment.com
nameserver 216.154.208.4
nameserver 216.154.208.5 Code: # cat /etc/hosts
########## Automatically generated by OnApp (2.1.0)
127.0.0.1 localhost
68.169.54.94 directory-srv.kidquipment.com directory-srv
68.169.54.94 mail.kidquipment.com mail
So, it looks like my recent (yesterday) DNS changes (A record for directory-srv and for putting directory-srv at MX pref = 10) have not gone into effect yet. Also, directory-srv should be but isn't looking to itself for name resolution.
Last edited by phoenix; 08-22-2011 at 10:45 AM..
| 
08-22-2011, 10:47 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | Obviously, from those results, you have no A or MX records for the server and your hosts file is incorrect. You should only have one entry in the hosts file for the mail server (and the IP address) and the loopback line is also incorrect - read the wiki article for the required format of that file.
__________________
Regards
Bill
| 
08-22-2011, 11:47 AM
| | | It's been a while since I last worked with Unix/Linux. Here's how things look now:
# cat /etc/hosts
########## Automatically generated by OnApp (2.1.0)
127.0.0.1 localhost.kidquipment.com localhost
68.169.54.94 mail.kidquipment.com mail
# dig kidquipment.com mx
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45857
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 8
;; QUESTION SECTION:
;kidquipment.com. IN MX
;; ANSWER SECTION:
kidquipment.com. 3600 IN MX 10 directory-srv.kidquipment.com.
kidquipment.com. 3600 IN MX 20 aspmx.l.google.com.
kidquipment.com. 3600 IN MX 30 alt1.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 30 alt2.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 40 aspmx2.googlemail.com.
kidquipment.com. 3600 IN MX 40 aspmx3.googlemail.com.
;; AUTHORITY SECTION:
kidquipment.com. 171634 IN NS ns2.domaindiscover.com.
kidquipment.com. 171634 IN NS ns1.domaindiscover.com.
;; ADDITIONAL SECTION:
directory-srv.kidquipment.com. 3600 IN A 68.169.54.94
aspmx.l.google.com. 252 IN A 74.125.157.27
alt1.aspmx.l.google.com. 13 IN A 74.125.113.27
alt2.aspmx.l.google.com. 127 IN A 209.85.143.27
aspmx2.googlemail.com. 263 IN A 74.125.43.27
aspmx3.googlemail.com. 257 IN A 74.125.127.27
ns1.domaindiscover.com. 2940 IN A 216.104.162.3
ns2.domaindiscover.com. 2940 IN A 216.104.163.3
;; Query time: 68 msec
;; SERVER: 216.154.208.4#53(216.154.208.4)
;; WHEN: Mon Aug 22 18:42:28 2011
;; MSG SIZE rcvd: 372
# dig kidquipment.com any
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35481
;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 2, ADDITIONAL: 7
;; QUESTION SECTION:
;kidquipment.com. IN ANY
;; ANSWER SECTION:
kidquipment.com. 3600 IN SOA ns1.tierra.net. hostmaster.tierra.net. 2011082204 7200 1800 604800 28800
kidquipment.com. 3600 IN TXT "google-site-verification=A8wMF17BhMC3NQ4ygw-YncXWY2sdlei-CxTWE4R4u3w"
kidquipment.com. 3600 IN MX 10 directory-srv.kidquipment.com.
kidquipment.com. 3600 IN MX 20 aspmx.l.google.com.
kidquipment.com. 3600 IN MX 30 alt1.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 30 alt2.aspmx.l.google.com.
kidquipment.com. 3600 IN MX 40 aspmx2.googlemail.com.
kidquipment.com. 3600 IN MX 40 aspmx3.googlemail.com.
kidquipment.com. 3600 IN NS ns1.tierra.net.
kidquipment.com. 3600 IN NS ns2.tierra.net.
;; AUTHORITY SECTION:
kidquipment.com. 3600 IN NS ns2.tierra.net.
kidquipment.com. 3600 IN NS ns1.tierra.net.
;; ADDITIONAL SECTION:
directory-srv.kidquipment.com. 3584 IN A 68.169.54.94
aspmx.l.google.com. 236 IN A 74.125.157.27
alt1.aspmx.l.google.com. 290 IN A 74.125.113.27
alt2.aspmx.l.google.com. 111 IN A 209.85.143.27
aspmx2.googlemail.com. 247 IN A 74.125.43.27
aspmx3.googlemail.com. 241 IN A 74.125.127.27
ns1.tierra.net. 1854 IN A 216.104.162.2
;; Query time: 64 msec
;; SERVER: 216.154.208.4#53(216.154.208.4)
;; WHEN: Mon Aug 22 18:42:45 2011
;; MSG SIZE rcvd: 507 | 
08-22-2011, 02:14 PM
| | | Ok, I'm able to resolve directory-srv.kidquipment.com from other machines on the internet, but zmsetup.pl is still failing with:
Installing LDAP configuration database...done.
Setting defaults...No results returned for A lookup of directory-srv.kidquipment.com
Checked nameservers:
127.0.0.1
216.154.208.5
DNS ERROR resolving directory-srv.kidquipment.com
It is suggested that the hostname be resolveable via DNS
Change hostname [Yes] | 
08-22-2011, 02:38 PM
| | | Oh, and I did change /etc/hosts so that it's now:
########## Automatically generated by OnApp (2.1.0)
127.0.0.1 localhost.localdomain localhost
68.169.54.94 directory-srv.kidquipment.com directory-srv | 
08-25-2011, 09:39 AM
| | | [SOLVED] Installing ZCS on CentOS 5.5: zmsetup.pl/zmldapinit error Where this error was appearing:
DNS ERROR resolving MX for directory-srv.kidquipment.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [directory-srv.kidquipment.com]
Simply entering the domain name (kidquipment.com) instead of the FQDN that install.sh was trying to use, resolved the problem. | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |