Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to use hostname to connect to a DHCP client machine?

Reply
Thread Tools Display Modes

How to use hostname to connect to a DHCP client machine?

 
 
Steve Dondley
Guest
Posts: n/a

 
      02-03-2004, 03:08 AM
I've (finally) got a home wireless network going with my Debian Linux laptop
and desktop and I'm ready to dive into the world of hands on networking.
The machines are DHCP clients. I'm curious to know how to ssh into the
machines using their hostnames instead of their IP addresses. Looked at the
networking HOWTO but didn't see anything there. The two machines are
connected via a wireless Linksys router.

Thanks.


 
Reply With Quote
 
 
 
 
johnny bobby bee
Guest
Posts: n/a

 
      02-03-2004, 06:12 AM
Steve Dondley typed:

> I've (finally) got a home wireless network going with my Debian Linux laptop
> and desktop and I'm ready to dive into the world of hands on networking.


ya - but are you ready to dive into the world of linux newsreaders?

> The machines are DHCP clients. I'm curious to know how to ssh into the
> machines using their hostnames instead of their IP addresses.


if - like my LAN - all PCs keep their internal IP address given to
them by the router.
you can then add each PCs hostname and IP address to /etc/hosts.

eg - /etc/hosts
127.0.0.1 localhost
192.168.2.100 hostname-of-deb-labptop
192.168.2.101 hostname-of-deb-desktop

then you should be able to ssh by hostname.


--
- Linux: the choice of a GNU generation
- free; as in free speech and free beer

remove '.eh' to email

 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-04-2004, 12:38 AM
Steve Dondley <(E-Mail Removed)> wrote:
> I've (finally) got a home wireless network going with my Debian Linux laptop
> and desktop and I'm ready to dive into the world of hands on networking.
> The machines are DHCP clients. I'm curious to know how to ssh into the
> machines using their hostnames instead of their IP addresses. Looked at the
> networking HOWTO but didn't see anything there. The two machines are
> connected via a wireless Linksys router.


If the DHCP clients are given fixed addresses (they have a
hardware-ethernet clause in them specifying their MAC address), then you
should put their names into a DNS server.

Dynamic DHCP clients shouldn't really be used as servers, but you can
use Dynamic DNS to update DNS when they get a new address via DHCP.

See the DNS-HOWTO, its quite informative.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple client/server socket program works on one Linux machine, it doesnot work on other machine GS Linux Networking 2 05-09-2006 12:55 PM
Router cannot get hostname of Linux client PC Daniel =?ISO-8859-1?Q?B=F6hmer?= Linux Networking 3 03-07-2006 08:55 AM
Linux to Wireless Router - Client Hostname Problem johnebullock@hotmail.com Linux Networking 0 04-15-2005 06:19 PM
My hostname not being registered via DHCP UncleStoner Linux Networking 9 02-03-2005 03:42 AM
Mandrake Assigns Hostname Before DHCP? ignatius@notreal.net Linux Networking 0 09-29-2003 02:38 PM



1 2 3 4 5 6 7 8 9 10 11