Professional Web Applications Themes

Really stupid Q - hostname - Linux Setup, Configuration & Administration

I know... this is a really stupid question..... BUT; how do I change the system name from localhost on a RH 7.3 system ??? thx for any help ! feeling foolish in W Canada..........................

  1. #1

    Default Really stupid Q - hostname


    I know... this is a really stupid question.....

    BUT; how do I change the system name from localhost on a RH 7.3 system ???


    thx for any help !

    feeling foolish in W Canada.......................
    tc Guest

  2. #2

    Default Re: Really stupid Q - hostname

    On Wed, 08 Oct 2003 23:23:14 +0000, tc wrote:
     
    edit /etc/sysconfig/network
    change localhost into a name you like (eq mymachine)
    edit /etc/hosts
    make sure it contains at least
    127.0.0.1 localhost localhost.localdomain
    127.0.0.1 mymachine linuxfan.mymachine
    where linuxfan is a name you choose.

    --
    Met vriendelijke groeten
    Cordialement
    Kind regards

    Paul Reggers Easynet Support
    ftp://ftp.easynet.be/support/

    Paul Guest

  3. #3

    Default Re: Really stupid Q - hostname

    On Wed, 08 Oct 2003 23:23:14 +0000, tc wrote:
     

    edit /etc/sysconfig/network
    change localhost into a name you like (eq mymachine)
    edit/etc/hosts
    make sure it contains at least
    127.0.0.1 localhost localhost.localdomain
    127.0.0.1 mymachine linuxfan.mymachine
    where linuxfan is a name you choose.

    --
    Chaos, panic & disorder - my work here is done

    http://beginnerslinux.org
    http://repo.mine.nu

    repo Guest

  4. #4

    Default Re: Really stupid Q - hostname

    tc wrote:
     

    Two ways, which are what the configuration tools actually do.

    1: Edit /etc/sysconfig/network and change your hostname.
    2: Edit /etc/hosts and put the hostname associated with your expected
    IP address there. The network init scripts will detect the "localhost"
    name and reset it correctly at boot time.
    3: Use a DHCP server and have it publish the hostnames along with the
    IP address.

    If you're using dynamic DNS, you need to use option 1. For static IP
    addresses I recommend some version of the second.

    Nico Guest

  5. #5

    Default Re: Really stupid Q - hostname

    repo wrote:
     
    >
    >
    > edit /etc/sysconfig/network
    > change localhost into a name you like (eq mymachine)
    > edit/etc/hosts
    > make sure it contains at least
    > 127.0.0.1 localhost localhost.localdomain
    > 127.0.0.1 mymachine linuxfan.mymachine
    > where linuxfan is a name you choose.[/ref]

    Don't do this. If your machines's hostname winds up published in your
    local DNS or NIS hosts configuration, it will point various connections
    to localhost instead of to the machine's IP address and break things at
    awkward moments.

    This approach is only appropriate if your desired hostname is not
    published to anyone else in your network.

    Nico Guest

  6. #6

    Default Re: Really stupid Q - hostname

    repo wrote:
     
    >
    > edit /etc/sysconfig/network
    > change localhost into a name you like (eq mymachine)
    > edit/etc/hosts
    > make sure it contains at least
    > 127.0.0.1 localhost localhost.localdomain
    > 127.0.0.1 mymachine linuxfan.mymachine[/ref]

    Never do this. Don't allow 127.0.0.1 to become ambiguously defined. It has
    far-reaching, weird consequences, most depending on one's distribution.

    --
    Paul Lutus
    http://www.arachnoid.com

    Paul Guest

  7. #7

    Default Re: Really stupid Q - hostname

    Paul Reggers wrote:
     
    > edit /etc/sysconfig/network
    > change localhost into a name you like (eq mymachine)
    > edit /etc/hosts
    > make sure it contains at least
    > 127.0.0.1 localhost localhost.localdomain
    > 127.0.0.1 mymachine linuxfan.mymachine[/ref]

    Stop offering this broken suggestion. This is an ignorant piece of advice
    that will likely cause the OP endless difficulties.

    Don't try to redefine 127.0.0.1 as anything but the default.

    --
    Paul Lutus
    http://www.arachnoid.com

    Paul Guest

  8. #8

    Default Re: Really stupid Q - hostname

    tc <ca> writes:


    ]I know... this is a really stupid question.....

    ]BUT; how do I change the system name from localhost on a RH 7.3 system ???


    edit /etc/sysconfig/network, and put in a HOSTNAME= line
    and a DOMAINNAME= line
    Also if you have an ip address put it into /etc/hosts

    If you want to change it on the fly
    man hostname

    Bill Guest

  9. Moderated Post

    Default Re: Really stupid Q - hostname

    Removed by Administrator
    Nico Guest
    Moderated Post

  10. #10

    Default Re: Really stupid Q - hostname

    tc <ca> wrote in message news:<C%0hb.50591$pl3.15383pd7tw3no>... 

    netconfig?
    linuxconf?
    Xyerp Guest

  11. #11

    Default Re: Really stupid Q - hostname

    Xyerp wrote:
     
    >
    >
    > netconfig?
    > linuxconf?[/ref]

    netconfig doesn't set hostnames. linuxconf should have had a bullet put
    through it for trying to be too many things to too many people and
    default setting things you *COULD NOT CONTROL* from the interface., and
    has been discarded in RH 8.0 and 9 to be replaced with much smaller and
    more reliable "redhat-config-*" tools.

    But the various posts here about editing /etc/sysconfig/network and
    /etc/hosts gave what the semi-graphical tools actually *do*.

    Nico Guest

  12. #12

    Default Re: Really stupid Q - hostname

    Nico Kadel-Garcia <net> wrote in message news:<com>... 
    > >
    > >
    > > netconfig?
    > > linuxconf?[/ref]
    >
    > netconfig doesn't set hostnames. linuxconf should have had a bullet put
    > through it for trying to be too many things to too many people and
    > default setting things you *COULD NOT CONTROL* from the interface., and
    > has been discarded in RH 8.0 and 9 to be replaced with much smaller and
    > more reliable "redhat-config-*" tools.
    >
    > But the various posts here about editing /etc/sysconfig/network and
    > /etc/hosts gave what the semi-graphical tools actually *do*.[/ref]

    Thats strange - netconfig works for me. In fact, the first question it
    asks is "what hostname do you want"!

    The original poster is only using RH 7.3, and so things in RH8 or 9
    won't help him, so I would agree that for a novice RH 7.3 user
    linuxconf may be easier than having to edit files.
    Mattias Guest

  13. #13

    Default Re: Really stupid Q - hostname

    Mattias Honrendgard wrote:
     
    >>
    >>netconfig doesn't set hostnames. linuxconf should have had a bullet put
    >>through it for trying to be too many things to too many people and
    >>default setting things you *COULD NOT CONTROL* from the interface., and
    >>has been discarded in RH 8.0 and 9 to be replaced with much smaller and
    >>more reliable "redhat-config-*" tools.
    >>
    >>But the various posts here about editing /etc/sysconfig/network and
    >>/etc/hosts gave what the semi-graphical tools actually *do*.[/ref]
    >
    >
    > Thats strange - netconfig works for me. In fact, the first question it
    > asks is "what hostname do you want"![/ref]

    Damn. You're right: I misremembered, and that's my fault. I should have
    checked.

    Nico Guest

  14. #14

    Default Re: Really stupid Q - hostname

    Nico Kadel-Garcia <net> wrote in message news:<com>... 
    > >
    > >
    > > Thats strange - netconfig works for me. In fact, the first question it
    > > asks is "what hostname do you want"![/ref]
    >
    > Damn. You're right: I misremembered, and that's my fault. I should have
    > checked.[/ref]

    Heh. Whats even worse is that no-one has mentioned the *really*
    obvious one... "man hostname" !
    Mattias Guest

Similar Threads

  1. CFCHART and hostname
    By go_su in forum Macromedia ColdFusion
    Replies: 0
    Last Post: April 11th, 01:11 PM
  2. hostname
    By Thomas Browner in forum PERL Beginners
    Replies: 4
    Last Post: December 4th, 07:33 PM
  3. hostname for LWP
    By George Georgalis in forum PERL Beginners
    Replies: 0
    Last Post: September 24th, 08:27 PM
  4. hostname change
    By Syn in forum Sun Solaris
    Replies: 6
    Last Post: July 30th, 08:29 AM
  5. Replies: 0
    Last Post: July 7th, 07:42 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139