News for hackers. Stuff that matters.
Re:RFC 1178: Choosing a name for your computer (1990) by curtis3389 on Sunday February 07, 2021 @08:41AM (#26054951)
I use the wordlist from Oren Tirosh’s mnemonic encoding project: http://web.archive.org/web/20090918202746/http://tothink.com...

I can't find the post that linked it, but it had a very nice scheme.

EDIT: found it: https://mnx.io/blog/a-proper-server-naming-scheme/

EDIT2: one-liner to get a random word from the file:

cat wordlist.txt | tail -n +2 | sed -E 's/\s*(\w+)\s+/\1\n/g' | sed -E '/^$/d' | shuf -n 1

i.e. <print file> | <skip first line> | <split lines into words> | <remove empty lines> | <choose random line>

Re:RFC 1178: Choosing a name for your computer (1990) by throw0101a on Sunday February 07, 2021 @10:32AM (#26055657)
> EDIT: found it: https://mnx.io/blog/a-proper-server-naming-scheme/

One problem I see, specifically for the environment, is that "dev" is now a TLD (thanks Google!), so you have to be careful should you try to do a short cut like "web01.dev" you may get a surprise depending on your resolv.conf:

* https://en.wikipedia.org/wiki/.dev

Lots of 'generic' TLDs now thanks to ICANN:

* https://en.wikipedia.org/wiki/List_of_Internet_top-level_dom...

There's both ".accountant" and ".accountants".

The article describes geographic sub-domains, and uses "nyc" as an example, but that's a TLD now as well. It may be better to use UN/LOCODE as a starting point:

* https://en.wikipedia.org/wiki/UN/LOCODE

If you don't need down to the city/municipal level, then ISO 3166-2 may be useful (<nation><hyphen><subnational>):

* https://en.wikipedia.org/wiki/ISO_3166-2

Re:RFC 1178: Choosing a name for your computer (1990) by devoutsalsa on Sunday February 07, 2021 @10:14AM (#26055534)
Once I was moved to a new team at work, and the team leader really wanted a team name. I generated like 5 or 10 words from /usr/share/dict/words, one of which was profanity. I could tell that everyone liked Team Profanity, but no one was brave enough to adopt it. I really wish we had, because there was much cursing on that team.
Re:RFC 1178: Choosing a name for your computer (1990) by freedomben on Sunday February 07, 2021 @11:46AM (#26056168)
Minor correction: path is /usr/share/dict/words
Re:RFC 1178: Choosing a name for your computer (1990) by devoutsalsa on Sunday February 07, 2021 @12:14PM (#26056359)
Thanks, fixed.
Re:RFC 1178: Choosing a name for your computer (1990) by gspr on Sunday February 07, 2021 @09:03AM (#26055082)
I use animals, mostly. Except any ARM-based device must be named after a limb or a part of a limb that is not an arm. It must.
Re:RFC 1178: Choosing a name for your computer (1990) by xtiansimon on Sunday February 07, 2021 @09:38AM (#26055303)
I use food. Abstract, but also memorable.
Re:RFC 1178: Choosing a name for your computer (1990) by logifail on Sunday February 07, 2021 @02:48PM (#26057602)
Back at Uni we got four new workstations so obviously I named them 'death', 'war', 'famine' and 'pestilence'. Then shortly after we added a fifth, it ended up being 'mayhem'.*

Some time later we got two more boxen and the female members of our research group were given the job of naming them, and we ended up with 'itchy' and 'scratchy'...

* for the Pratchett readers I was wrong, it should of course have been 'Kaos'...

Re:RFC 1178: Choosing a name for your computer (1990) by kps on Sunday February 07, 2021 @10:08AM (#26055501)
Personally — since we're all chiming in — I use elements. My fallback DNS is a periodic table.
Re:RFC 1178: Choosing a name for your computer (1990) by salamander014 on Sunday February 07, 2021 @12:00PM (#26056274)
Please tell me you assign IP addresses based on atomic weight!

This might be the coolest thing I've read all year...

Re:RFC 1178: Choosing a name for your computer (1990) by kps on Sunday February 07, 2021 @10:45PM (#26060554)
Atomic number, yes. And of course every machine has a one or two-letter alias.
Re:RFC 1178: Choosing a name for your computer (1990) by luckman212 on Sunday February 07, 2021 @12:22PM (#26056411)
Here's a more concise version, minus a few forks!

    sed "$((RANDOM % 1632 + 1))q;d" words.txt
Grab this cleaned wordlist with 1 word per line:

    wget http://nerab.github.io/wordlist/words.txt
Re:RFC 1178: Choosing a name for your computer (1990) by anarcat on Sunday February 07, 2021 @08:36PM (#26059882)
I really like the functional naming part of this, but I don't like the idea of using random names.. I think that server names must be functional otherwise you will tend to think of them as an abstract box that, if you just install that little extra package, will be a fine webserver on top of that mailer.

Don't do it! If you're labeling hardware and need multiple functions, use virtualisation or containers, and then the host is named after that (e.g. we use Ganeti, so gnt-01, or say kube-01).

At home, I name machines after inspiring political figures and while I like the naming, it does discourage me into treating those machines as cattle, which I should do more.

Re:RFC 1178: Choosing a name for your computer (1990) by curtis3389 on Sunday February 07, 2021 @09:59PM (#26060293)
I prefer to have mostly meaningless names for machines, and then having more names for them in DNS for their various functions. That way the functions can be moved about the machines and if that's what you care about, then that's how you refer to them (deploy the app Foobar to web01 and web02), but when a machine goes down, you can shout, "clark is down!" web01/dns01/sto01 being down only means the service is down, whereas clark being down is something more severe.

I manage my stuff with Ansible, which makes all this pretty easy.

Re:RFC 1178: Choosing a name for your computer (1990) by anarcat on Monday February 08, 2021 @11:44AM (#26066862)
here if "fsn-node-01" is down, we know it's a major ganeti node that dies. if "unifolium" dies, ... can you guess what happens?

at first I couldn't either, but then I learned it's an old KVM node hosting a bunch of virtual machines, and it means pain, definitely something severe. yet it's not meaningfully different from "corsicum" dying (which is "just" a VM).

adding meaning to machines reduces the cognitive burden (for oldies) and discovery burden (for newcomers) of figuring out what is what.

that assumes you don't run services bare-metal. if you do, then maybe it makes sense to use meaningful names for those, but in general, I strongly try to avoid doing that anyways... and if I do, having a functional name for that metal is mostly harmless: if the function changes, the name changes, and then I need to do a name change, which I allow for.

but that is rare, because if i dedicate full metal for a function, you can bet it won't be readily available for other purposes...

Re:RFC 1178: Choosing a name for your computer (1990) by anarcat on Sunday February 07, 2021 @08:42PM (#26059916)
oh and forgot to mention.. at my current job, there was this practice of naming servers after onions (I'll let you guess where that is).

I had no idea how many kinds of onions there were turns out there are many, especially if you start to take in Latin names and translations...

But then I need to learn how to spell colchicifolium, and neriniflorum, and no, those two are not related (or are they) and what does meronense do again? and oh yeah corsicum is the replica of one of those...

Those naming conventions are cool until you start to document your stuff properly and start being serious about training and including new people. Then you should focus on meaningful, easy to remember, type, and generate, names.

Re:RFC 1178: Choosing a name for your computer (1990) by jsanders9 on Sunday February 07, 2021 @09:15AM (#26055143)
I use the method in 'a proper naming' scheme linked here and am very happy with it. It solves all the problems mentioned in other threads here.

It is fairly straightforward to incorporate into your infrastructure as code workflow for managing your "cattle".