Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   accessing DHCP connected hosts by name vs IP (http://www.linux-archive.org/ubuntu-user/613668-accessing-dhcp-connected-hosts-name-vs-ip.html)

Colin Law 12-24-2011 06:41 PM

accessing DHCP connected hosts by name vs IP
 
On 24 December 2011 18:23, Jay Ridgley <jridgley2@austin.rr.com> wrote:
> Folks,
>
> I know that if a host is connected via a static connection and is in the
> /etc/hosts file by name and IP, it may be accessed by name when using ssh
> and sftp.
>
> How can I or is it possible, to do the same for a host connected via DHCP?
>
> For example: My laptop (hostname kodiak) has the following entry in
> /etc/hosts:
>
> 192.168.139.7 kodiak
>
> When connected with a cat 5 cable it can be accessed simply by ssh kodiak,
> however, when connected via DHCP I must use ssh 192.168.139.38 (the assigned
> IP address on my local network).
>
> I would rather only use the hostname. Once connected with ssh it does show
> as kodiak, so it is identified as expected. I just can not ssh kodiak with a
> wireless connection.

Try using
ssh kodiak.local

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 12:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.