Click to See Complete Forum and Search --> : Red Hat 8 Hostnames


deggz
11-23-2002, 11:13 AM
This is my first Linux attempt. I have a workgroup network with the DSL router dynamicly asigning ip addresses & shareing a cable connection. to network the windows machines all I have to do is give them a unique computer name and then the same workgroup. Using DCHP and samba the Linux machine can be seen in network neighborhood as localhost but it wont allow access using that name. Also logging into the linux box, it calls itself localhost.localdomain. the only host entry for the box is the this localhost.localdomain. to my understanding this is the internal host and i should also have a second one for interfacing with the network but i can't figure out how to set it up & get it to accept the ip from the router (just trying to add a hostname requires entering the ip address) all help will be appreciated

Hayl
11-23-2002, 11:27 AM
hostname yourhostname.your.domain.com

deggz
11-23-2002, 12:48 PM
I tried that, Hostname linuxbox.workgroup : hostname linuxbox.local.workgroup.com : hostname linuxbox.workgroup.com
but all it does is change the alias of the localhost.localdomain entry to linuxbox. it still "refers" to itself as localhost.localdomain

any other ideas

raz0rblade
11-23-2002, 01:28 PM
open /etc/hosts and change
127.0.0.1 localhost.localdomain localhost
to something like

lanip linuxbox.workgroup linuxbox

replace lanip with your machine's ip address from ifconfig #run as root
if it still dont work there is another file to edit but i cant think of it right now, it was the only way i could ensim (needed a certain hostname) to install on a linux box. I'll look it up later if this dont work.

Tulluin
11-23-2002, 01:40 PM
Edit
/etc/sysconfig/network where it says hostname.

raz0rblade
11-23-2002, 01:57 PM
Originally posted by Tulluin
Edit
/etc/sysconfig/network where it says hostname.

yea, that was the other file i was talking about :)

deggz
11-23-2002, 04:48 PM
Thanks everyone, That seems to have done the trick !!