Skip to content
forked from myles/genhost

generate unused hostnames by randomly picking from a word list

Notifications You must be signed in to change notification settings

isabella232/genhost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genhost

These two scripts will randomly generate a hostname for a server (using the pool of words comes from Oren Tirosh's mnemonic encoding project) or a workstation (using characters from the Marvel Universe).

Usage

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

$ ./genhost 4
romeo.example.com
holiday.example.com
jester.example.com
spiral.example.com

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 email.example.com), simply ignore it and generate a replacement.

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

I also like to sort the text files so I know what has been used:

$ sort wordlist -o wordlist

Helper Utilities

I worte two simple Python scripts:

get_workstation_names.py

Download a list of Marvel Universe characters for the workstations-wordlist.

remove_dups.py

Removes entries found in the servers-wordlist that are already in the workstations-wordlist.

About

generate unused hostnames by randomly picking from a word list

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 63.8%
  • Python 36.2%