Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I would like to access a remote host using a short name. On a system where I have admin rights, I would achieve this by adding an entry in /etc/hosts file, something like this shortname

Is it possible to achieve this using some other method which does not require modifying /etc/hosts or other admin level or system wide changes?

share|improve this question

marked as duplicate by terdon, Rahul Patil, jasonwryan, Anthon, Stéphane Chazelas Mar 15 '14 at 8:35

This question was marked as an exact duplicate of an existing question.

Depends on why you want to create aliases. If its because you want to SSH to the short-name, you can use the Host and HostName configuration options in your SSH config. Maybe if your more specific about what you're trying to accomplish, you'll get some more useful feedback. – tdk2fe Mar 15 '14 at 5:04

I think you should lookup your local-network-name. Most routers seem to set some kind of hostname-system. a fritzbox uses hostname.fritz.box for example, a thompson device uses hostname.lan, and its not unlikely your router has something to offer as well.

I take it you dont have access to the routers interface to set a DNS record? That would be the easiest way to accomplish it totally to your guidelines

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.