[PLUG] /etc/resolv.conf and DHCP

Bruce Kingsland brucek at kingkon.com
Fri Aug 22 15:53:01 UTC 2003


Keith's Log: StarDate 0821.1330:
> 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

This works, but I try not to have too many aliases to sort out.

> or in /etc/hosts
> 
> ip.number.here   domain.name.here   shortcutname
> 
> 65.213.217.241   nsa.gov            nsa
> 
> then to connect type
> $ ssh nsa

This is what I've done (so I have a large /etc/hosts file); but it
runs into a snag when nsa.gov has reason to change their IP.num.ber.
This particular snag bytes me just often enough to really annoy me.

-----

Someone suggested sometime ago that there was a way to add a conf file
to /etc/ssh or ~/.ssh that allows an acceptable solution to both these
problems, but I haven't sorted it out yet. I think I saw a HowTo once
on this topic too, but other issues seem to have precidence.

-bk
-- 
Bruce Kingsland					       brucek at kingkon.com
Kingsland Konsulting    {dba: Renegaid Services}             360-531-3730
_________________________________________________________________________
* All email from me is GPG signed -- below is the signature fingerprint *
D/08C855DB g/04C6884B  7F00 EF76 11F7 D5FB 3393  7637 B0C9 049E 08C8 55DB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



"Beware the leader who bangs the drums of war in order to whip
the citizenry into a patriotic fervor, for patriotism is indeed a
double-edged sword. It both emboldens the blood, just as it narrows
the mind. And when the drums of war have reached a fever pitch and the
blood boils with hate and the mind has closed, the leader will have no
need in seizing the rights of the citizenry.   Rather, the citizenry,
infused with fear and blinded by patriotism, will offer up all of their
rights unto the leader and gladly so.  How do I know?  For this is what
I have done. And I am Caesar."
- Julius Caesar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20030822/64f84908/attachment.asc>


More information about the PLUG mailing list