• Stars
    star
    257
  • Rank 158,728 (Top 4 %)
  • Language
    Shell
  • Created about 11 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

generate unused hostnames by randomly picking from a word list

genhost

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.

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.

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
romeo
holiday
spiral

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

More Repositories

1

transcrypt

transparently encrypt files within a git repository
Shell
1,467
star
2

packer-arch

packer.io template for building an Arch Linux base box
Shell
284
star
3

puppet-sandbox

A Vagrant-based Puppet development environment for creating new modules
Puppet
219
star
4

salt-sandbox

A Vagrant-based Salt development environment for creating new modules
Puppet
121
star
5

tiddlywiki-docker

Tools for running TiddlyWiki via a Docker container
Shell
42
star
6

yawl

Yet Another Word List (YAWL) by M. Leo Cooper
C
35
star
7

dotfiles

collection of home directory configuration files used across multiple unix-based systems
Shell
28
star
8

hyperboriarch

Ansible playbooks for configuring cjdns nodes running on Arch Linux
Shell
28
star
9

monarch

Ansible playbooks for configuring your own mail server on Arch Linux
16
star
10

vagrant-init

a template for provisioning new Vagrant projects
Ruby
8
star
11

spellabc

Converts characters into their equivalent spelling alphabet code words
Go
7
star
12

matasano-elixir

solutions to the matasano crypto challenges, written in elixir
Elixir
5
star
13

pygments-factor

pygment's lexer for factor language syntax highlighting
Python
2
star
14

lexibomb

a tile-based word game, written in elixir
Elixir
2
star
15

elasticdog-com

The source of my personal website
TypeScript
2
star
16

hello-sinatra

A barebones Sinatra application template using Slim, Compass, and MiniTest::Spec
Ruby
2
star
17

socket_address

An Elixir convenience library for manipulating Internet socket addresses.
Elixir
2
star
18

chef-repo

chef repository integrated with the opscode platform
Ruby
2
star
19

snowflakes

beautiful and unique snowflakes
Nix
1
star
20

actions-sandbox

Sandbox for Configuring GitHub Actions
Rust
1
star
21

miscellaneous-scripts

the name says it all
Shell
1
star
22

taxonate

Identify and filter files based on their programming language.
Rust
1
star