do2hosts
A little utility tool to convert Digital Ocean dropets' IPs to /etc/hosts entries.
Only works for IPv4 and Linux.
Why?
Because it's easier doing ssh root@droplet-name
than ssh root@ ah ... go check Digital Ocean ... oh right that's it ... 10.x.y.z
, i.e. laziness.
How to install
npm install -g do2hosts
How to run
do2hosts
DigitalOcean Personal Access Token: <your DO access token>
# BEGIN DigitalOcean entries
x.x.x.x droplet1
y.y.y.y droplet2
# END DigitalOcean entries
License
MIT