1
Is there a way to make ssh dynamically lookup the ip address for a given hostname through an external API?
The scenario is that I have a few customers with thousands of varying on-demand cloud servers (new ones are added every hour, old ones get killed every hour).
Because there are so many names and they change quite fast, using the cloud service DNS API is not really an option (I tried before, kills their admin panels and API servers).
So... I'm looking for a configuration option in ssh to use a script to lookup the IP address when I do "ssh some-name". I know I can alias the ssh script and wrap it, but I'm wondering if there's any internal option available.
…are they running the DNS API on a potato? – user1686 – 2017-10-27T11:15:00.697
Very likely, but that's out of my control unfortunately so I'm trying to make it as convenient as possible – Wolph – 2017-10-27T15:25:55.100