Find the answer to your Linux question:
Results 1 to 3 of 3
I have two entries on my /etc/hosts file 10.10.10.128 db.my.com myhost 127.0.0.1 localhost.localdomain localhost IT sometimes runs under myhost soemstimes runs under localhost how can I fix it to run ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4

    @localhost OR @myhost

    I have two entries on my /etc/hosts file

    10.10.10.128 db.my.com myhost
    127.0.0.1 localhost.localdomain localhost

    IT sometimes runs under myhost soemstimes runs under localhost how can I fix it to run always under the name of myhost ?

    [eserr@localhost]~

    [eserr@myhost]~

    ahhahhhhhhhhhhhhhhhhhhh whyyyyyyyyyy

    I feel that there is a simple solution because I know there are not too many dice in linux.

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Hey,

    Ensure that u hve your hostname in the following files:

    1. /proc/sys/kernel/hostname

    2. /etc/hosts

    3. /etc/hostname (if u hve one)

    4. /etc/sysconfig/network



  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    4
    thanks a lot now it works.

Posting Permissions

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