LINUX Networking Issue

DrSpock

Member
Jun 18, 2001
102
0
0
I have a linux server that i am using as a Dedicated server. Now, depending on what network i am on, it will either be a dhcp server or a client server. The dhcp server will have a static ip and the client will have a dynamic ip. What i want to do is setup so that i can telnet to that server, but i want to telnet by name and not ip. Like, instead of: telnet -> 192.168.0.1...i want to: telent -> name of server. I know this is possible, but i don't know how to do it. Does anybody have any ideas?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The box needs an A record in the DNS domain, if it's a client on someoneelse's network talk to them about adding it, if it's yours read the DNS-HOWTO and docs on DNS and setting up bind.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Actually if you only want to do this from your box, then all you need is a host entry. If it's a Windows box then it's an entry in c:\windows\hosts.

You'll learn, eventually, that typing the ip is most likely less characters to type than the hostname itself. :)
 

DrSpock

Member
Jun 18, 2001
102
0
0
the main reason why i want to do this is because on a dhcp network, i never know what the ip is. I'm just trying to save myself an extra step. Thanks for the ideas. I'll try it out.
 

ttn1

Senior member
Oct 24, 2000
680
0
0
I do this very thing on my home network. From inside my firewall/router, I run a caching DNS server to resolve all my internal hosts.
From outside, I use a hosting service to map my DHCP address to a "real" name. There are lots of programs to auto update your
IP with your hosting service when your IP changes. When my IP changes, which is rarely, it usually takes about 5-30 minutes for
my name to come back online.