I've just got broadband (small village in Suffolk) and have a static IP address, however the host name is impossibly long, it is 84-51-144-229.isbdlt032.adsl.metronet.co.uk
So, is there any way for me to provide my own personal alias for this name so I can (for example) say "ssh -l username home" where 'home' will be expanded to the full host name?
This is on systems where I don't (mostly) have root access, two Linux systems where I have shell access and Solaris systems at work.
What I really want is a sort of local copy of the /etc/hosts file which a user can add to. I know I could set a shell/environment variable but this requires prefixing with $ to use it and I'd like something cleaner if possible.
On Wed, May 18, 2005 at 08:40:55AM +0100, Chris Green wrote:
So, is there any way for me to provide my own personal alias for this name so I can (for example) say "ssh -l username home" where 'home' will be expanded to the full host name?
Stick an alias into your shell startup file something like:
alias sshhome='ssh username@home'
or buy yourself a personal vanity domain and get them to point it at your ip address?
Adam
On Wed, May 18, 2005 at 08:59:06AM +0100, Adam Bower wrote:
On Wed, May 18, 2005 at 08:40:55AM +0100, Chris Green wrote:
So, is there any way for me to provide my own personal alias for this name so I can (for example) say "ssh -l username home" where 'home' will be expanded to the full host name?
Stick an alias into your shell startup file something like:
alias sshhome='ssh username@home'
That's a way for the specific ssh requirement but I'd prefer it to be more general so that I can access other services (if/when I open them up) without having an alias for each.
or buy yourself a personal vanity domain and get them to point it at your ip address?
Now *that* makes more sense, I have both isbd.co.uk and isbd.net already, maybe I can find yet another isbd.xxx domain. Thanks.
Chris Green wrote on 18 May 2005 09:14:
Now *that* makes more sense, I have both isbd.co.uk and isbd.net already, maybe I can find yet another isbd.xxx domain. Thanks.
Wouldn't it be easier to have a subdomain such as xxx.isbd.co.uk or xxx.isbd.net? I use adsl.drake.org.uk for mine. When I was with Nildram I could even get them to do reverse IP on that for me too. Haven't bothered to see if Zen (my current provider) does that...
Regards,
Martyn
Chris Green wrote:
So, is there any way for me to provide my own personal alias for this name so I can (for example) say "ssh -l username home" where 'home' will be expanded to the full host name?
Chris,
Have you considered using a Dynamic DNS service - www.dyndns.org provide free sub-domain URLs for static IP addresses as well as dynamic ones e.g. yourname.dyndns.org
Jim.
Chris Green asked:
So, is there any way for me to provide my own personal alias for this name so I can (for example) say "ssh -l username home" where 'home' will be expanded to the full host name?
Try a DNS service like one of the dynamic DNS providers (ideal if your machine moves around) or http://freedns.afraid.org/ - you could do it yourself if you have a domain and a name server, but it means running a server and all the joy and pain that brings with it ;-)
(For ssh, you can add things to .ssh/config like:
Host flux Compression yes User bbs Hostname flux.termisoc.org
and then just type "ssh flux" or whatever, but that doesn't help with other services - maybe some clients have similar aliases.)