Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: DNS Questions and Trouble Installing

  1. #1
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    7

    Default DNS Questions and Trouble Installing

    Hi, I'm trying to install Zimbra onto a sled 9 distro, but I'm rather new to working with DNS and the sort, and linux in general, so I had a few questions.

    So I was reading up in the wiki on how to install on sles 9
    (SUSE Linux Enterpise Server 9 NAT HOWTO - Zimbra :: Wiki)

    but I'm unclear on some of the information. I have set up a DNS, with host "sbs" and domain "sbstest.com" (not registered), but when installing the Zimbra client, it tells me:

    DNS ERROR resolving MX for sbs.sbstests.com
    It is suggested that the domain name have and MX configured in the DNS
    Change domain name? [Yes]

    But I input no because I don't know what to change it too.
    With that, I don't think my installation worked because I went to http://ip:7780 and nothing showed up. Any suggestions, or could someone point me in the right direction as how to setup and register my domain on my box?

    Also, another question is, does the domain name have to be registered?

    Thanks
    Last edited by smurraysb; 01-23-2008 at 12:41 PM.

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Welcome to the forums,

    It grabbed the servername as part of the domain from the box.
    As you can see you can try just sbstests.com or continue on and make a sbstest.com domain later after the setup finishes.

    From the server post the output of:
    Code:
     dig any sbstest.com
    http://ip:7780 is a little wrong for the admin console...or did you change the web port from 80 > 7780?
    Admin console gui is at: https://ip:7071
    Make sure you have no firewall or these ports open Ports - Zimbra :: Wiki & Firewall Configuration - Zimbra :: Wiki

    This FOSS or NE/NE trial?
    You might want to use a different operating system platform though...no sense installing 4.5.x when you can do 5.0.1
    List of supported platforms for 5.0.x is here: Zimbra Product Portal -Release 5.0

    NE downloads: /products/downloads.html
    FOSS downloads: /community/downloads.html

    NE Docs: /products/documentation.html
    FOSS Docs: /community/documentation.html

  3. #3
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    7

    Default

    Thank you for your reply!

    I'm not sure what you mean by servername, but the domain name for the box is sbstests.com (being unexperienced as I am, thats what I put as the domain when setting up the box)

    So I tried out that piece of code, and this is what I got in return, I'm not exactly sure what it all means.

    ; <<>> DiG 9.3.4 <<>> any sbstests.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45866
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

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

    ;; ANSWER SECTION:
    sbstests.com. 86400 IN SOA sbstests.com. postmaster.sbstests.com. 2008012348 10800 3600 604800 86400
    sbstests.com. 86400 IN NS sbstests.com.
    sbstests.com. 86400 IN MX 10 sbs.sbstests.com.

    ;; ADDITIONAL SECTION:
    sbs.sbstests.com. 86400 IN A **my ip**

    ;; Query time: 20 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Wed Jan 23 14:25:36 2008
    ;; MSG SIZE rcvd: 127

    Also, I was wondering if the DN needs to be a registered domain name, or is can Zimbra just run off a NAT connection?

    I tried that 7071 port, but I think the install didn't work, so that's why it's a no go.

    Sadley, I can't change platforms until this server is upgraded to another service pack, so I have to keep it to sled 9, which 4.5 only seems to support.
    Last edited by smurraysb; 01-23-2008 at 02:53 PM.

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    It can run behind a NAT though you might need a Split DNS - Zimbra :: Wiki another good article is: /blog/archives/2007/06/making_zimbra_bind_work_together_1.html
    To test your domain externally a good utility is Pingability.com - Quick Check : sbstests.com
    (Your /etc/hosts file would be good to post)

  5. #5
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    7

    Default

    Thank you again for your reply

    I'll read up on those two docs, and I'll post what happens. Until then, I'll post my hosts file

    #
    # hosts This file describes a number of hostname-to-address
    # mappings for the TCP/IP subsystem. It is mostly
    # used at boot time, when no name servers are running.
    # On small systems, this file can be used instead of a
    # "named" name server.
    # Syntax:
    #
    # IP-Address Full-Qualified-Hostname Short-Hostname
    #

    127.0.0.1 localhost

    # special IPv6 addresses
    ::1 localhost ipv6-localhost ipv6-loopback

    fe00::0 ipv6-localnet

    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    127.0.0.2
    **my_ip** sbs.sbstests.com sbs

  6. #6
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    You can comment out everything below the 'special IPv6' with a # symbol if desired.

    So the file should look like:
    127.0.0.1 locahhost.localdomain localhost
    serverIPHere server.domain.com server
    You can look in /etc/hostname to find server's hostname, or run this command:
    host `hostname`
    (backticks -next to the 1 key- not single quotes)

  7. #7
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    7

    Default

    Thanks, that doc helped a lot, I think I've resolved my DNS issues.
    When I type
    Code:
    host sbstests.com
    I get
    sbstests.com mail is handled by 10 mail.sbstests.com.
    and with
    Code:
    dig any sbstests.com
    I get
    ; <<>> DiG 9.3.4 <<>> any sbstests.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42450
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

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

    ;; ANSWER SECTION:
    sbstests.com. 86400 IN SOA sbstests.com. postmaster.sbstests.com. 2008012449 10800 3600 604800 86400
    sbstests.com. 86400 IN NS sbstests.com.
    sbstests.com. 86400 IN MX 10 mail.sbstests.com.

    ;; ADDITIONAL SECTION:
    mail.sbstests.com. 86400 IN A **my ip**

    ;; Query time: 3 msec
    ;; SERVER: 192.168.61.131#53(192.168.61.131)
    ;; WHEN: Thu Jan 24 12:20:28 2008
    ;; MSG SIZE rcvd: 128
    So, now I only have one last problem, and that's a port conflict 25 (zimbra-mta). I've never handled ports before, so I'm not quite sure what to do. Once again, I really appreciate the help!

  8. #8
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    ps aux | grep zimbra (kill -9 pid# of any remaining processes running)
    lsof | grep TCP | grep 25
    Do you have an existing mailserver like sendmail, exim (or even another postfix) running?

  9. #9
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    7

    Default

    Sorry for the delayed response.

    So, I checked, and I do have another postfix already, so I've done several installs, making sure to turn off postfix first, and still am having some troubles getting to the GUI.

    The install usually looks like it runs fine, the port conflict for 25 stopped showing up, but another one came up in it's place in port 80. But even after that, it seems to be installing correctly, I assume it's just moving the port numbers, I could (and most likely am) wrong though.

    The main problem though is getting to the GUI, I tried the https://ip:7071, but am getting this error.

    The connection was refused when trying to contact
    @myip@:7071
    Now, not to dump a whole lot on you, but I figure it's easiest to get an idea of how things are running if I just give you my process. So I wrote a shell script, and here's what it has in it. (Sorry that the sed's are a little messy, overall, they're just editing the zone file so that it looks like that one in that tut).

    #!/bin/sh

    #################################################
    # The variable @MYIP@ will represent my IP addr #
    #################################################

    echo "Turning off firewall"

    /etc/init.d/SuSEfirewall2_init stop
    /etc/init.d/SuSEfirewall2_final stop
    /etc/init.d/SuSEfirewall2_setup stop
    SuSEfirewall2 stop

    echo "Stopping POSTFIX..."

    /etc/init.d/postfix stop

    echo "Starting base installs..."

    rpm -Uvh php4-4.3.10-14.13.i586.rpm

    rpm -Uvh php4-session-4.3.10-14.13.i586.rpm

    rug install gmp bind-devel apache2 mysql

    rug install apache2-mod_php4 php4-cURL php4-gmp

    echo "Starting Services..."

    /etc/init.d/mysql start
    /etc/init.d/apache2 start

    echo "RPM'ing Cache Nameserver..."

    rpm -Uvh ~/Desktop/ZimbraComponent/caching-nameserver-7.1-3.noarch.rpm --force

    echo "Editing /etc/hosts file..."

    sed -i 's/^127.0.0.1\s*\t*localhost/&\.localdomain\tlocalhost/g' /etc/hosts

    echo "Copying over and editing zone file..."

    cp /var/named/localhost.zone /var/named/sbstests.com.zone

    ################################################## ############
    # These following sed's change the zone file to look just as #
    # described in the Zimbra & BIND tut. #
    ################################################## ############

    sed -i 's/\$ORIGIN localhost.//g' /var/named/sbstests.com.zone
    sed -i 's/1D IN/IN/g' /var/named/sbstests.com.zone
    sed -i 's/root/sbstests\.com\. mail\.sbstests\.com\./g' /var/named/sbstests.com.zone
    sed -i 's/^\(\t\+\)IN NS\(\t\+\)@/@\1IN NS\t\tmail\.sbstests\.com\.\n\1IN MX\t10\tmail\.sbstests\.com\./g' /var/named/sbstests.com.zone
    sed -i 's/^\(\t\+IN\sA\t\+\).*$/\1@MYIP@\nmail\1@MYIP@\nwww\1@MYIP@/g' /var/named/sbstests.com.zone

    chown named:named /var/named/sbstests.com.zone

    echo "Setting Nameserver..."

    sed -i 's/^nameserver .*$/nameserver @MYIP@/g' /etc/resolv.conf

    hostname mail.sbstests.com

    /etc/init.d/named reload

    echo "Unpacking the Zimbra Files..."

    tar -xzf ~/Desktop/ZimbraComponent/zcs-4.5.10_GA_1575.SuSEES9.tgz

    exit 0
    and after that, I start the install.sh

    any suggestions as to why the GUI doesn't seem to work? Or is there a command I can use in the command line just to see if it installed correctly or even at all?

    Thanks very much for your time!

  10. #10
    Join Date
    Aug 2007
    Location
    Trinidad
    Posts
    416
    Rep Power
    8

    Default

    hey check my thread here

    http://www.zimbra.com/forums/install...tallation.html

    its long.. but i eventually got it to work.. and now i can do installs without any issues

Similar Threads

  1. Zimbra Pre-Install Questions
    By dczanik in forum Installation
    Replies: 1
    Last Post: 06-13-2007, 12:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •