LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-10-2005, 06:08 AM   #1
ckamheng
Member
 
Registered: Apr 2003
Location: Malaysia
Distribution: Slackware 10.2
Posts: 74

Rep: Reputation: 15
How could i refer to the Linux box using host name rather than IP address


i have set up a Slackware 10.1 linux box as a server to host Tomcat and for Java/Jsp/Servlet testing.

i connect to the Linux box using puTTY from my WinXP.
How could i refer to the Linux box using host name rather than IP address while i am connecting to the linux box using puTTY?

How could i refer to the Linux box using host name rather than Ip address while i am testing the Jsp using the Web Browser?


Please help.
Thanks.
Merci.
 
Old 05-10-2005, 06:25 AM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Is the linux box on your local network? If so, you can reference your linux box by it's hostname already. Just edit /etc/HOSTNAME to your liking.
 
Old 05-10-2005, 06:32 AM   #3
ckamheng
Member
 
Registered: Apr 2003
Location: Malaysia
Distribution: Slackware 10.2
Posts: 74

Original Poster
Rep: Reputation: 15
How could i refer to the Linux box using host name rather than IP address

Yes, the linux box is connected to my company's network.
i can connect to the linux box from any PC in the company using puTTY.

How to edit the file /etc/HOSTNAME?

Merci.
Thanks.
 
Old 05-10-2005, 07:41 AM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
/etc/HOSTNAME is simply a text file. Edit with your favorite editor.
 
Old 05-10-2005, 07:48 AM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
And from the windows side, edit
Windows\System32\drivers\etc\lmhost.sam
(or similar)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error IP address already used by another host lngmn7 Linux - Networking 2 08-29-2005 04:41 AM
Unable to ping my linux host from windows box prabulinc Linux - Networking 2 08-27-2005 02:32 PM
Change Host and Ip address Fedora 3 s1goldman Linux - Newbie 3 01-04-2005 04:24 PM
how to force ip address/host name pair sichen Linux - Networking 4 08-12-2004 10:50 AM
eth0 and host address tommytomato Linux - Newbie 2 12-03-2003 04:29 PM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration