LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2004, 01:23 PM   #1
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Rep: Reputation: 15
How to name a linux box?


Hi All,

I have redhat linux 9.0 on my desktop. I want configure it in such a way that I want to access it from my laptop using a name, not an IP address. Since I am new to this I am not sure how to do this. Could you please help me in doing this.

Thanks,
Tejpatil
 
Old 10-06-2004, 06:28 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
there are 2 ways.... the hard way is to setup a local dns server.
the easy way is to edit the file /etc/hosts.

for example, my /etc/hosts file is....
Code:
127.0.0.1       localhost
192.168.0.1     tyler.durden.net      tyler
192.168.0.2     marla.singer.net     marla
so if i give the name "tyler" or "tyler.drden.net" the program will use the ip address 192.168.0.1 (the address of my local server)
 
Old 10-06-2004, 06:28 AM   #3
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
Your best bet is to set up DNS server.
The best tutorial I have seen so far is: http://www.linuxhomenetworking.com/l...dns-static.htm
This was relatively easy, and the best part is: It's written for users of RedHat systems.
(I had no problems adapting it to Slackware though.)

Best regards
Geir O.
 
Old 10-06-2004, 12:47 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
but like i said, thats the hard way. if you have a few hundred computers on your network, then yes.. DNS !
but i get the impression this guy has 2 or maybe 3 machines.
 
Old 10-07-2004, 03:41 AM   #5
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
You're right. For a few computers, the hosts file is the way to go. If you have many computers, or wish to broaden your skills, DNS is the way to go. ( I have 2 workstations and a server. The server is running DNS, just to see if I could get it running.)
 
Old 10-07-2004, 09:20 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
BTW, All machines in the network have to have pretty much the same hosts file, which is what makes it so difficult for large networks. If any of the machines is Windows, you'll find the hosts file for it in C:\Windows\hosts. It works exactly the same way.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Slow Transfer Speed Between Linux Box and Windows Box timswim78 Linux - General 1 10-23-2005 11:45 AM
Linux box with eth0 to cable modem and eth1 to Windows box videojeff Linux - Networking 23 03-03-2005 07:58 PM
Password Message Box when accessing linux box from Window Machine mikeccs Linux - Networking 1 08-04-2004 05:47 AM
Transfairing files from windows xp box to mandrake linux 10.0 box. tyledogg Linux - Newbie 4 07-25-2004 11:24 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration