Results 1 to 9 of 9

Thread: [SOLVED] hostname not surviving reboot

  1. #1
    flsimbeck is offline Intermediate Member
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    5

    Default [SOLVED] hostname not surviving reboot

    Here is my issue, right now everything works, whe I reboot the server the host name appears to break, which breaks the admin staus, stats, and stats email, this is just what I've noticed.

    I've run through these formus, the Wiki, and any just about everything else I could find, serveral times.

    The ONLY way I can temporally resolve it (until next reboot) is to, as root:
    Code:
    hostname mail
    As soon as above is run, everything works. (no restart of anything required).

    I have split DNS setup using a Win2k3 DNS server (.3), with a backup, slave Win2k8 DNS server (.5).

    There has got to be an error somewhere in my config thats not letting things survie a reboot, I just can't seem to find it.

    Here is all the normally requested Info:

    cat /etc/hosts
    Code:
    127.0.0.1 localhost.localdomain localhost
    192.168.87.60 mail.mydomain.com mail
    
    # The following lines are desirable for IPv6 capable hosts
    # ::1     ip6-localhost ip6-loopback
    # fe00::0 ip6-localnet
    # ff00::0 ip6-mcastprefix
    # ff02::1 ip6-allnodes
    # ff02::2 ip6-allrouters
    # ff02::3 ip6-allhosts
    cat /etc/resolv.conf
    Code:
    search mydomain.com
    nameserver 192.168.87.3
    nameserver 192.168.87.5
    dig yourdomain.com any
    Code:
    ; <<>> DiG 9.4.2 <<>> mydomain.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11835
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 5
    
    ;; QUESTION SECTION:
    ;mydomain.com.                  IN      ANY
    
    ;; ANSWER SECTION:
    mydomain.com.           3600    IN      A       192.168.87.60
    mydomain.com.           3600    IN      NS      ns2.mydomain.com.
    mydomain.com.           3600    IN      NS      srv1.mydomain.com.
    mydomain.com.           3600    IN      NS      srv1.localdomain.local.
    mydomain.com.           3600    IN      NS      ns1.mydomain.com.
    mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
    live.com. 64 900 600 86400 3600
    mydomain.com.           3600    IN      MX      10 mail.mydomain.com.
    
    ;; ADDITIONAL SECTION:
    ns2.mydomain.com.       3600    IN      A       192.168.87.5
    srv1.mydomain.com.      3600    IN      A       192.168.87.3
    srv1.localdomain.local.        3600    IN      A       192.168.87.3
    ns1.mydomain.com.       3600    IN      A       192.168.87.3
    mail.mydomain.com.      3600    IN      A       192.168.87.60
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.87.3#53(192.168.87.3)
    ;; WHEN: Wed Dec 23 21:21:21 2009
    ;; MSG SIZE  rcvd: 278
    dig yourdomain.com mx
    Code:
    ; <<>> DiG 9.4.2 <<>> mydomain.com mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25261
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;mydomain.com.                  IN      MX
    
    ;; ANSWER SECTION:
    mydomain.com.           3600    IN      MX      10 mail.mydomain.com.
    
    ;; ADDITIONAL SECTION:
    mail.mydomain.com.      3600    IN      A       192.168.87.60
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.87.3#53(192.168.87.3)
    ;; WHEN: Wed Dec 23 21:23:15 2009
    ;; MSG SIZE  rcvd: 67
    host `hostname`
    Code:
    mail.mydomain.com has address 192.168.87.60
    host -v fqdn.yourdomain.com
    Code:
    Trying "mail.mydomain.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64870
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.mydomain.com.             IN      A
    
    ;; ANSWER SECTION:
    mail.mydomain.com.      3600    IN      A       192.168.87.60
    
    Received 51 bytes from 192.168.87.3#53 in 0 ms
    Trying "mail.mydomain.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29470
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.mydomain.com.             IN      AAAA
    
    ;; AUTHORITY SECTION:
    mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
    live.com. 64 900 600 86400 3600
    
    Received 97 bytes from 192.168.87.3#53 in 0 ms
    Trying "mail.mydomain.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1620
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.mydomain.com.             IN      MX
    
    ;; AUTHORITY SECTION:
    mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
    live.com. 64 900 600 86400 3600
    
    Received 97 bytes from 192.168.87.3#53 in 0 ms
    This is driving me nuts, I've got lot of time into NOT solving this, any help would be appriciated.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    What does it say in the /etc/hostname file?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    flsimbeck is offline Intermediate Member
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    5

    Default Hostname contents

    Quote Originally Posted by phoenix View Post
    What does it say in the /etc/hostname file?
    /etc/hostname
    Code:
    mail

    Thanks for the quick reply!

    Frank

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

    Default

    What's the contents of this file: /etc/sysconfig/network

    [/edit]Oops, that was from the wrong distribution.

    What I meant to ask was, when you did the command to display the contents of /etc/hostname did you do that after a reboot or after you had run the hostname command to set the name to 'mail?
    Last edited by phoenix; 12-23-2009 at 12:13 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    flsimbeck is offline Intermediate Member
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    5

    Default Hostname

    It was after the reboot and after reseting the hostname mannually.

    I will try rebooting and recording info before resetting it.

    Frank

  6. #6
    flsimbeck is offline Intermediate Member
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    5

    Default Hostname

    /etc/hostname did not change after reboot, before doing anything.
    Code:
    mail
    hostname -a (same resultes for -s -f and -d)
    Code:
    hostname: Unknown host
    After resetting hostname with
    Code:
    hostname mail
    hostname -a and -s returned
    Code:
    mail
    hostname -f
    Code:
    mail.mydomain.com
    hostname -d
    Code:
    mydomain.com

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    Could you try this, delete the /etc/hostname file then use your favourite editor to create the file again with your hostname then save the file and reboot the server. Does that fix it?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    flsimbeck is offline Intermediate Member
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    5

    Default Re-create hostname file

    Quote Originally Posted by phoenix View Post
    Could you try this, delete the /etc/hostname file then use your favourite editor to create the file again with your hostname then save the file and reboot the server. Does that fix it?
    That did it, although I don't understand why. The file contents and permissions are identical. Is this some kind of quirk with the OS?

    Thanks a lot for your time, now thats resolved, the ony other issues I have is the AV/AS stats are always zero, and I know there is some spam being routed to the junk my folder, but I search the formus before I post this issue.

    Again, thanks Frank.

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    Quote Originally Posted by flsimbeck View Post
    That did it, although I don't understand why. The file contents and permissions are identical. Is this some kind of quirk with the OS?
    If everything appears OK then the likely answer is that there are some unprintable characters in the file (as there probably was in this case), deleting and recreating the file just means you have the correct data in there and no extraneous characters. Glad you've fixed it.

    Quote Originally Posted by flsimbeck View Post
    Thanks a lot for your time, now thats resolved, the ony other issues I have is the AV/AS stats are always zero, and I know there is some spam being routed to the junk my folder, but I search the formus before I post this issue.
    I'd suggest you have a look at the wiki for details of the logger here: Logger (ZCS 6.0.x and later) - Zimbra :: Wiki That will give you an idea of how it works and at the bottom of that page there are some Troubleshooting tips. When you've been through that have a quick search of the forums for any similar problems and if you still have no data then post again in a new thread.

    Quote Originally Posted by flsimbeck View Post
    Again, thanks Frank.
    You're welcome.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 30
    Last Post: 01-13-2009, 08:00 AM
  2. Zimbra Server very slow - Too many SMTP connections
    By pc-nico in forum Administrators
    Replies: 23
    Last Post: 06-05-2008, 05:12 AM
  3. Installation Cancelled - Zimbra-spell !
    By Ledg in forum Installation
    Replies: 4
    Last Post: 10-19-2006, 02:54 AM

Posting Permissions

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