LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Need to SSH into cluster node by machine name !? (https://www.linuxquestions.org/questions/linux-networking-3/need-to-ssh-into-cluster-node-by-machine-name-457278/)

nuro305 06-22-2006 10:18 AM

Need to SSH into cluster node by machine name !?
 
Hi,

I'm setting a new cluster (all FC4) with the head-node handing out IP's dynamically to all 5 nodes when they boot up. Works great...

I need to be able to SSH into any node by it's HOSTNAME. Since each node has a different IP each time it boots, I first have to find it's IP then SSH into it Via IP.

What's an easy way to "Connect" the computer's hostname to it's IP regardless of what it is for that session so I can just PING or SSH into the node like this:
ssh node1.myshop.com

(I have the head-node in a Domain. eg.
schroedinger.myshop.com - schroedinger is the HOSTNAME of the head-node... )

Thanks!!!!!!!!

MS3FGX 06-23-2006 03:10 AM

How are the DHCP leases given? From some hardware device (like a router), or from a machine under your control?

If you are running the server that is giving out the leases, you want to look into enabling DDNS for the LAN.

nuro305 06-23-2006 10:07 AM

Thanks for the reply,

I'm running the leases, the DHCP server is the head-node. I configured DHCP from the examples I found on the net and used the default lease settings for now. I control everything. I can hard-code whatever I need because this system will never be connected to a network or the Internet. It's a cluster running scientific mod/sim applications.

I'll look into your recomendation. If anyone has a down-and-dirty way to get this done, just tell me what files I have to modify on the head-node and/or each node ;-)

Thanks!

MS3FGX 06-23-2006 10:41 PM

I think you might want to try out dnsmasq.

While I have not used this software myself yet, from what I have gathered about it in the past, it combines a small DHCP server and DNS server into one program, which will allow you to revolve DHCP client's hostnames though DNS.


All times are GMT -5. The time now is 07:09 PM.