by elasticdog

elasticdog / genhost

generate unused hostnames by randomly picking from a word list

207 Stars 42 Forks Last release: Not found 21 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


This script will randomly generate hostnames by picking words from the provided word list. The pool of words comes from Oren Tirosh's mnemonic encoding project.


Just run the script and provide the number of hostnames you'd like to generate:

$ ./genhost 4

All of those words will automatically be commented out in the word list and thus removed from the pool of future names. If a hostname has the potential to be confusing based on technical jargon (like
), simply ignore it and generate a replacement.

If you decommission a server, you can return its hostname to the usable pool, thereby uncommenting it in the wordlist:

$ ./genhost reuse jester

You can also print a list of the hostnames currently marked as in use:

$ ./genhost list

For collaboration purposes, don't forget to commit the updated word list back to a shared Git repository so names do not get reused:

$ git add wordlist
$ git commit
$ git push

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.