Results 1 to 7 of 7

Thread: NOOB - help setting up hosts file

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Rep Power
    7

    Question NOOB - help setting up hosts file

    Hello everyone -

    I a NOOB at this Zimbra and Linux set up. In trying to install Zimbra it says to add a host.IP and hostname.localdomain to the host file in /etc. I try to edit the file, I've tried chomd the file to 777 but nothing I do allows me to write to hosts. Also what should the file look like with this FQDN = mailserver.hsdm.lancasterdomain.org ? I would appreciate any help you can give on this, thanks.

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    Welcome to the forums

    If you are sat behind a firewall and your server will be on a private IP address ie. 192.168.1.10 then have a read of Split DNS - Zimbra :: Wiki

    If you still have problems then please post the following information
    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig _yourdomain_ mx
    dig _yourdomain_ ns
    host `hostname` <- note backticks and not double quotes
    remember to replace _yourdomain_ with your own

  3. #3
    Join Date
    Apr 2008
    Posts
    12
    Rep Power
    7

    Default

    uxbod -

    Thanks for your reply. I tried the up2date bind command. It appears there is no up2date on the server. It says command not found. I went into the GUI Add/Remove Software and added bind as split DNS suggested. But it appears there is no named.conf in /etc. So do I have defunct installation of RH 5?

    If I cat /etc/hosts I get:

    127.0.0.1 mailserver.hsdm.lancasterdomain.org mailserver localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6


    resolv.conf gives:
    nameserver 192.168.168.11
    nameserver 66.109.229.5
    nameserver 66.109.229.4


    dig _hsdm.lancasterdomain.org_ mx gives In SOA A.ROOT.SERVERS.NET NSTLD.VERISIGN-GRS.COM 2008042200 1800 900 604800 86400

    host `hostname` gives mailserver.hsdm.lancasterdomain.org not found: 3(NXDOMAIN)

    So it appears this is a DNS problem what do I do? What is suggested in Split DNS - but I have several servers on the network. And it appears there is a DNS entry on 192.168.168.11 for mailserver. More suggestions?

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by LancasterHistory View Post
    If I cat /etc/hosts I get:

    127.0.0.1 mailserver.hsdm.lancasterdomain.org mailserver localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    This is completely wrong, as per the Quick Start Installation Guideyour hosts file shoudl look like this:

    Code:
    127.0.0.1   localhost.localdomain    localhost
    192.168.x.x mailserver.hsdm.lancasterdomain.org  mailserver
    replace the 192.168.x.x with the LAN IP of your server.



    Quote Originally Posted by LancasterHistory View Post
    resolv.conf gives:
    nameserver 192.168.168.11
    nameserver 66.109.229.5
    nameserver 66.109.229.4


    dig _hsdm.lancasterdomain.org_ mx gives In SOA A.ROOT.SERVERS.NET NSTLD.VERISIGN-GRS.COM 2008042200 1800 900 604800 86400

    host `hostname` gives mailserver.hsdm.lancasterdomain.org not found: 3(NXDOMAIN)

    So it appears this is a DNS problem what do I do? What is suggested in Split DNS - but I have several servers on the network. And it appears there is a DNS entry on 192.168.168.11 for mailserver. More suggestions?
    You also seem to have no A or MX records for the domain name that you used in the dig command. You might, howevere, entered the wrong command. What does the following show:

    Code:
    dig hsdm.lancasterdomain.org mx
    dig hsdm.lancasterdomain.org any
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Apr 2008
    Posts
    12
    Rep Power
    7

    Default

    When I dig the mailserver this is the response:

    dig mailserver.hsdm.lancasterdomain.org mx

    ; <<>> DiG 9.3.3rc2 <<>> mailserver.hsdm.lancasterdomain.org mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28960
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mailserver.hsdm.lancasterdomain.org. IN MX

    ;; AUTHORITY SECTION:
    hsdm.lancasterdomain.org. 3600 IN SOA lchsdc01.hsdm.lancasterdomain.org. hostmaster.hsdm.lancasterdomain.org. 1087 900 600 86400 3600

    ;; Query time: 5 msec
    ;; SERVER: 192.168.168.11#53(192.168.168.11)
    ;; WHEN: Tue Apr 29 13:29:31 2008
    ;; MSG SIZE rcvd: 110


    then when I Dig any I get this:

    dig mailserver.hsdm.lancasterdomain.org any

    ; <<>> DiG 9.3.3rc2 <<>> mailserver.hsdm.lancasterdomain.org any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13292
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mailserver.hsdm.lancasterdomain.org. IN ANY

    ;; ANSWER SECTION:
    mailserver.hsdm.lancasterdomain.org. 3600 IN A 192.168.168.16

    ;; Query time: 5 msec
    ;; SERVER: 192.168.168.11#53(192.168.168.11)
    ;; WHEN: Tue Apr 29 13:27:58 2008
    ;; MSG SIZE rcvd: 70

    ;; WHEN: Tue Apr 29 13:23:11 2008
    ;; MSG SIZE rcvd: 116

    Is that what we expect to see?

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by LancasterHistory View Post
    Is that what we expect to see?
    No, that's not the correct output. You are using the FQDN of the server and you should be using the domain name, see my command above. Have you made the changes to the hosts file?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,016
    Rep Power
    24

    Default

    LancasterHistory, if you post again what I asked for in my first reply this will provide Bill and myself with the necessary information to help. Obviously replace the _yourdomain_ with hsdm.lancasterdomain.org

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. bayes db..
    By osiris in forum Administrators
    Replies: 9
    Last Post: 06-15-2011, 11:14 AM
  2. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  3. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 11:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 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
  •