Click to See Complete Forum and Search --> : localhost.localdomain?


jsundquist
01-09-2003, 01:28 PM
Ok. total newbie here. If you havent guess. Isnt that why most of us come here though? Anywas as the subject says. What does localhost.localdomain do? I tried changing it but now my box will not boot properly. I get an error every time I go into GNome. I changed it to say redhat.localdomain. Which I am guessing screwed it up. For what reason did that mess things up. Is there any way to change things such as the computer name and such?

Icarus
01-09-2003, 01:45 PM
change it back to localhost.local domain

To change the computer name you need to change it in /etc/sysconfig/network and add the new name to the end of the /etc/hosts file as an alias

so....
in /etc/sysconfig/network
HOSTNAME=ComputerName

and

/etc/hosts
127.0.0.1 localhost.localdomain ComputerName

Should clear it up nicely for ya, Gnome will still work fine if you don't change it, but that error does get annoying quickly ;)

rid3r
01-09-2003, 01:45 PM
that's the loopback interfase, that's how Linux talks with itself, keep it :)

jsundquist
01-09-2003, 01:56 PM
my current set up for /etc/sysconfig/netowrk looks like
NETWORKING=yes
HOSTNAME=localhost.localdomain

There for I would want to change ti to be
NETWORKING=yes
HOSTNAME='Computer Name'.localdomain
?

and change my /etc/hosts to
127.0.0.1 localhost.localdomain Redhat

Correct?

if so I just have one problem with the hosts. How do I get out of insert mode of Vi. I forget. :(

IronGeek
01-09-2003, 02:05 PM
Press the ESC key to exit Insert/Input Mode and enter Command Mode in Vi.

jsundquist
01-09-2003, 02:09 PM
ok thanks.
Now how about the other part. if I were to edit the first file is that would it should look like?