View Single Post

   
  #2 (permalink)  
Old 01-18-2008, 04:32 PM
Unruh
 
Posts: n/a
Default Re: Newbie needs help with setting computer name

"jeanluc" <jeanluc_picard_66@hotmail.com> writes:

>I have a simple home network in which two computer are connected
>through a dhcp router. The router is connected to a cable modem.


>One computer is running SUSE-LINUX and the other WinXP.


>I can use cygwin on the XP machine to open up a remote desktop with the
>command


>$ X -query IP_address


>Where IP_address is the IP address.


>I would like instead to use the name of the linux computer instead of
>the IP_address.


>Some other information.


>On the LINUX box the command line is


>user_name@linux:~>


>I take it then that the computer name is "linux". Is this correct?


>On the LINUX machine I then type


>user@linux:~> nslookup linux


>The message indicates the the server can't find a computer named linux.


>Enough of the preamble:


>Can somebody give me some hints to what I have to do so that I can use
>the computer name rather than IP address to identify my linux box?


>thanks!!



a) set up your router to give the two machines static, not dynamic ip
addresses based on the MAC of their ethernet cards.
b) make up a name for your linux machine and put the name and the ip into
the windows computers hosts file (Not sure where Windows hides the hosts
file).

If you want your linux machine to think it has the same name, put that into
an appropriate place on the Linux box. Since I do not run SUSE I am not
sure where it is. On Mandrake/Redhat it is in /etc/sysconfig/network, but I
do not know if SUSe uses the same file.

Reply With Quote