Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am using FC7. When i restart my machine's network connection, it is showing hostname different than as mentioned in /etc/sysconfig/network and /etc/hosts. What could be possible problem. For ...
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    2

    hostname displaying different than in /etc/sysconfig/network

    Hi,
    I am using FC7. When i restart my machine's network connection, it is showing hostname different than as mentioned in /etc/sysconfig/network and /etc/hosts. What could be possible problem. For temporary i am running `hostname <real hostname>`, after restarting the network. But what can i do to fix it permanently. Here is some file contents related to hostname:

    cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=localhost.localdomain

    cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost

    I tried to find out from where the different hostname is coming from, but did get any success.


    Regards,
    Shambhu.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    What is in the contents of /etc/hostname?

Posting Permissions

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