HACKER Q&A
📣 sohalsdr

How do y’all manage your computer hostnames?


I’ve been using a particular hostname scheme for a while now, but it isn’t really cutting it, as I’m running out of good hostnames. I like the idea of very friendly hostnames (a clean name I can easily use to identify a certain system), but part of me wants to be a little more descriptive, especially since I have a lot of devices that I use on a regular basis and that are identified on things like GitHub and Tailscale via their hostname. I’m curious about how other people manage (or don’t manage) the hostnames for their computers and servers.


  👤 caitlinface Accepted Answer ✓
My dad is a high school math teacher. When I was growing up, there was a few years that he had a computer lab in his classroom. He named all of the computers after mathematicians: Archimedes, Bernoulli, Gauss, Euler.

That made an impression on me, so I followed a similar pattern when I started having my own devices to name: Erdos, Newton, Pascal.

Since then, I've settled into my own naming scheme, themed to women pioneers of technology:

My phone is named Lovelace after Ada Lovelace. One of my servers is named Hopper after Grace Hopper. My laptop is named Kare after Susan Kare.

My wife's naming scheme for her devices are space themed: Nebula, Luna, Io, Ganymede.

When we have shared devices, we sort of merge the schemes into space themed scientists. For example, our Apple TV is named "Copernicus", which I found a fitting name since the world revolves around it when it's on.


👤 zepearl
I never use less than 3 chars and I try to never use more than ~8 chars.

- currently for the dedicated servers that I rent at "Hetzner.de" I use just "he1", "he2", "he3", etc... . I don't have a high turnaround (e.g. I don't have he1 anymore but he2 runs since many years) and they're all located in Germany (I had one hosted in Helsinki until a few days ago but the connectivity was often really bad whenever Hetzner was doing changes to their network), so after a few hours/days I start remembering instinctively what runs on the latest server that I have set up.

- for the notebooks/servers I have at home I use from time to time a nickname. E.g. my old "Lenovo Carbon" laptop is just "carbon", but a NAS is called "story" (storage server which has only 4 disks -> fantasy-diminutive of "storage" was for me "story"), a server which has a Ryzen 5950x CPU with 3 big fans which used to make a "woooossshh"-sound whenever it spun them up is called "windy" (I then disabled the "boost" feature of the CPU because the noise of the air was annoying and it was anyway getting too warm in the flat, but the name stuck), a big tower-PC is "biggo", etc... .

- for VMs I always use the prefix "vm" followed by some chars which describe what the VM is supposed to host, followed by a number. E.g. I have currently "vmdbcommon6" (to host a general-purpose database, 6th reinstallation), "vmbot4" to run my web-crawler, "vmweb1" to host the website, etc.... I NEVER refer to Linux distributions names nor software names as it happened many times in the past that I wanted/had to switch.

So, nothing too clever in my case... .


👤 hotpotamus
Awhile back I had a co-worker who's customer named them all after care bears. There was an incident that lasted two days where he was on the phone talking about Sharebear or Funshine Bear. Love it or hate it, it had a lot more character than just a UUID of some sort. I've also seen comic book characters complete with graphics in monitoring setups and astronomical names used.

👤 t-3
I just do it the boring way: name them after the hardware, location, or the service it's running. It's not worth the trouble to think of cute unique names when I might install a new OS tomorrow or leave it alone for a year or two before my next login. The things I log into often are so automated and integrated into my workflow that names aren't necessary.

👤 JohnFen
I name all of my machines after types of knives and swords, because the knife is symbolic of logical thought.

I don't bother to indicate via the hostname what the function of that particular machine is as a general policy, but sometimes an opportunity presents that I can't resist. For instance, my NAS is named "knifeblock" because it "holds" (the contents of) other "knives". My current smartphone is called "switchblade" because it's typically in my pocket, etc. My previous smartphone was "pocketknife" and the one before that was "penknife". The very first real server I set up for my personal use -- the one that started this whole naming scheme -- was "broadsword".

When a machine is retired, the name it goes by is retired as well, to help identify old backup images.

I have burned through all of the really common knife types and have moved on to more obscure and historical knifes and swords, and those from other nations/languages.


👤 genmud
Depends on what scale, and how systems are managed.

I have seen quite a bit for environments less than, say, 10,000 hosts work well.

I have also seen places that just do p/v/c- for stuff too, where p=physical, v=virtual, c=container and id is just a hex representation of the host number in the config db.

The big thing is having thoughtful DNS and load balancer setups for services. If you have a vpn, it should be vpn.domain.name or for documentation docs.domain.name.


👤 jaredsohn
Could see if GPT can come up with more names for your existing scheme; I think naming things is one of its strengths and you don't have to worry about hallucinations.

👤 somuchjob
A decision from middle school me when I got my first computer: hostnames are from fictional spacecraft. So I've had home servers 'enterprise' and 'endurance', my NAS is 'citadel' from Mass Effect. It's not useful, but it is fun.

A friend of mine uses favorite foods. I've had guest SSH accounts on 'burrito' before.


👤 jen729w
Elements. Choose your own IP scheme and the last octet is the element's number.

Palladium? 10.0.0.46.

As a side-effect I now know a lot more about the periodic table.


👤 ksherlock
Some people follow RFC 1178. Some people follow Genesis 2:19.

👤 mikecoles
TEXR104U15 - Texas DC, Rack 104, U 15

Services are referenced according to their purpose.


👤 yuppie_scum
Cattle, not pets.

👤 purrgers
I use the name of fruit trees for my homelab.

👤 nathanaldensr
Cat breeds.

👤 8b16380d
kids nicknames