[PLUG] /etc/resolv.conf and DHCP

Keith ac7xc-lnx at earthlink.net
Thu Aug 21 13:31:01 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Aug 2003, Steven Raymond wrote:

>
> So I like to be able to go "ssh hostname" instead of "ssh
> hostname.domain.com".  If I edit /etc/resolv.conf with "search domain1.com
> domain2.com" then it tries all of those in order and saves me the trouble
> of typing the domain name.

 If you running it in a bash shell you could
create an alias

alias ssh-host='ssh hostname.domain.com'

then to connect type
$ ssh-host

or in /etc/hosts

ip.number.here   domain.name.here   shortcutname

65.213.217.241   nsa.gov            nsa


then to connect type
$ ssh nsa



- -- 
Best Regards,  Keith     AOL IM:kilowattradio
NW Oregon Radio http://kilowatt-radio.org/
"Give SCO $699 for using Linux or the Penguin gets it."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/RSv/r/bzxvfkcH0RAjDNAJ9bdWMQVH3fnGTc0GsdqE0aipU0kgCeNp0V
LQmCVqJmvYkGDXGXSYk5ZEc=
=R/NV
-----END PGP SIGNATURE-----




More information about the PLUG mailing list