[GLLUG] alias for host name?

Ben Pfaff blp@cs.stanford.edu
16 Jul 2002 08:46:11 -0700


Tom Rockwell <rockwell@pa.msu.edu> writes:

> I have a laptop that gets a DHCP IP address when plugged in at
> MSU. Along with the IP number, it also gets assigned a hostname.
> While this hostname is reasonable (pilotusername-N.user.msu.edu), I'd
> like to be able to refer to the machine using a different name from
> other computers I use.
> 
> So on my desktop, I'd like to be able to refer to the notebook with a
> short name (say "laptop"...).  Is there a builting way of doing this,
> or would it require some custom scripts?

You could install BIND on the desktop, set up your own local DNS
domain with that, and add a CNAME within it from `laptop' to
`pilotusername-N.user.msu.edu'.
-- 
"Unix... is not so much a product
 as it is a painstakingly compiled oral history
 of the hacker subculture."
--Neal Stephenson