Friendly names vs. IP address

Friendly names vs. IP address

Post by Joe Hess » Tue, 29 Aug 2000 04:00:00



Hi,

I just installed networking between my two linux computers.  I must have
done it right since I can telnet between them.

My question is:
I want to do
telnet MyComputerName
rather than:
telnet IP address

Is there a way to do this?  I am new to linux and networking.

Thank you,

Joe Hesse

 
 
 

Friendly names vs. IP address

Post by B. Joshua Rose » Tue, 29 Aug 2000 04:00:00


It's easy just put the names in /etc/hosts, the format is IP followed by
the alias's, see below:

192.168.0.2     intrepid.polybus.com    intrepid


> Hi,

> I just installed networking between my two linux computers.  I must have
> done it right since I can telnet between them.

> My question is:
> I want to do
> telnet MyComputerName
> rather than:
> telnet IP address

> Is there a way to do this?  I am new to linux and networking.

> Thank you,

> Joe Hesse


 
 
 

Friendly names vs. IP address

Post by David Efflan » Wed, 30 Aug 2000 10:34:42



Quote:>It's easy just put the names in /etc/hosts, the format is IP followed by
>the alias's, see below:

>192.168.0.2 intrepid.polybus.com    intrepid

You can also do this with Win boxes by putting names in \windows\hosts
(not hosts.sam which is just a sample).  I am not sure if Windows does
aliases, but if you use simple names it doesn't matter.

Then when you are feeling bold, read the DNS-HOWTO and try to set up a
caching nameserver with forward and reverse zones for your LAN.  With that
running you can simply point the box running named to 127.0.0.1 for DNS
and other LAN boxes to the ethernet IP of the DNS box.


>> Hi,

>> I just installed networking between my two linux computers.  I must have
>> done it right since I can telnet between them.

>> My question is:
>> I want to do
>> telnet MyComputerName
>> rather than:
>> telnet IP address

>> Is there a way to do this?  I am new to linux and networking.

>> Thank you,

>> Joe Hesse

--

http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/  http://cgi-help.virtualave.net/
 
 
 

Friendly names vs. IP address

Post by That Darn Fo » Wed, 30 Aug 2000 04:00:00



> Hi,

> I just installed networking between my two linux computers.  I must have
> done it right since I can telnet between them.

> My question is:
> I want to do
> telnet MyComputerName
> rather than:
> telnet IP address

> Is there a way to do this?  I am new to linux and networking.

> Thank you,

> Joe Hesse

Edit the file /etc/hosts on both machines, add something like:

192.168.0.1 lunux1.myhome.net linux1
192.168.0.2 linux2.myhome.net linux2

This is the form [IP address] [host & domain name] [nickname]

The domain name should probably be what you entered when you
installed linux (what distribution is it anyway?).

You will then be able to "telnet linux1" or whatever.

LGFR