Linode Forum Index Linode Forum
Linode Community Forums
 


List the hostname for a linode in linode.list API method

Click here to go to the original topic

 
       Linode Forum Index -> Feature Request/Bug Report
Author Message
Bartzy



Joined: 06 Sep 2011
Posts: 8

Posted: Sat Oct 01, 2011 8:45 am    Post subject: List the hostname for a linode in linode.list API method  

Hi,

I just wanted to do a script that get's a linode label and SSH's into the lish console with LINODE_ID@fremontHOST_ID.linode.com , but I saw that the linode.list method doesn't respond with the host of the linode.

If possible, that would be a great feature :)

Thanks,
Bar.
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Mon Oct 03, 2011 9:47 am    Post subject:  

You can use linode.ip.list to get both the IP address and reverse DNS hostname (for each IP) of that linode. Get the linode ID from linode.list.

http://www.linode.com/api/linode/linode.ip.list
Back to top  
Bartzy



Joined: 06 Sep 2011
Posts: 8

Posted: Mon Oct 03, 2011 10:04 am    Post subject:  

How does the RDNS or the IP address helps to connect to the Lish SSH?

I believe I need the linode ID (which I have), and the host itself (fremont383 for example), which I don't have (and this is my feature request :)).
Back to top  
Guspaz



Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC

Posted: Mon Oct 03, 2011 11:04 am    Post subject:  

The host is only useful if you want to use lish, and that's only for emergencies anyhow. There's no reason to use lish over SSH if you can SSH directly to your linode.
Back to top  
Bartzy



Joined: 06 Sep 2011
Posts: 8

Posted: Mon Oct 03, 2011 11:18 am    Post subject:  

Correct.

My feature request is for emergency use. A script that will query the API and SSH via Lish on emergencies, so I won't have to go into the Linode Manager (sometimes it's hard, for example from a mobile device).

Just a feature request, that's all :)
Back to top  
 
       Linode Forum Index -> Feature Request/Bug Report
Page 1 of 1