Slashdot Mirror


Server Naming Conventions?

Some random reader sent in: "Hi, I'm wondering what others out there use for server naming conventions. Our data centre right now houses a little under 200 servers, with plans to grow up to 4000 servers within the next five years. We'd like to pick something flexible and easy to manage with any tracking system. The servers we'll be implementing include SUN, HPUX, and AIX servers, in addition to existing Compaq and HP Intel servers, so we'll have to adhere to limitations placed on hostnames by manufacturers (ie HPUX lets you have an 8 character hostname)." We had a similar story a few years ago.

The reader continues:

"Here's a few ideas we've been tossing around, using Joe's Deli as an example:

- [four letter "name"][two letter service type][2 numbers] eg) jdelwb03.domain.com
+ easy to determine the function and name
- hard to remember and pronounce, once you run out of four character servers, determining the name and function will be difficult. Joe's Deli and John's Delivery will have conflicting names

- [random combination of numbers and letters]
eg) ak1jop3d.domain.com
+ none really
- confusing.. really confusing. Can you imagine saying to someone "log on to alpha kappa one john omikron peter three delta?"

- [theme based name]
name servers based on a theme, eg Gundam
eg) zaku.domain.com, gelgoog.domain.com
+ easily identifiable - all Gundam names belong to Joe's Deli, easy to pronounce and remember
- hard for a new tech or management (why would they need to know?) to associate to a server

"I'd like to know what others in the tech community use for server naming policies when planning large scale data centres. Also, with data centres located nationally, does the naming convention pose any problems? Thanks."

37 of 959 comments (clear)

  1. Naming Conventions. by actappan · · Score: 5, Funny

    I've always like the idea of naming your systems after your exec staff. Makes rebuilding them kinda fun - and if they're windos boxen - you know that at some point you'll get to reformat your CEO.

    --
    \Drew National Data Director, John Edwards for President
    1. Re:Naming Conventions. by bentini · · Score: 4, Interesting

      On the subject of execs:
      I'm a student at Stanford, and one of my profs set up a lab a couple years back where each of the workstations was a logical operation. And, Xor, Nand, Or, Iff, etc.
      The server was called "gates", because each of these is a logic gate.
      Then, Bill Gates donated money and there was going to be a Gates Computer Science building.
      Needless to say, my prof lost his name pretty damn quickly, and old Bill was relented to.

    2. Re:Naming Conventions. by JabberWokky · · Score: 4, Informative
      Yeah, but that leads to phrases like "Sal just went down!" yelled across the office. Bad times. Of course, back in '93, we named the Novell Digi-something modem servers in the Palm Beach Courthouse "Shafey" and "Twan" because they kept going down on each other. The "Political Officer" (read: Elected Offical's Yes Man) calmly asked us to remove the tags and not explain why they were named that during the audit.

      Personally, I named my home servers "riffraff", "columbia", my laptop "eddie", my palmtop "sadie", and so on. My work servers are "ritz", "tim", "susan", etc. For those of you who get it, it's a pretty simple naming scheme, and for those who don't, the work ones are respectable, non-geeky at a glance, and easy to remember.

      For large numbers of computers, name them by department and number. Or location and number. Room/cube numbers seem like a good idea until you start swaping offices and cubes. Best off keeping the numbers semi-random so you don't expect anything, and just log where they are/their name in your asset management software. A system moving inter-department/location will have to be wiped. Period. Easier to track software licenses anyway (especially if each department has a seperate software budget). If you've set up your users correctly, all their files are on the server, anyway. Don't use "Four character and number" or something like that. No reason to say MKEC4711 when it can just be marketingeastcoast-4711. YMMV depending on legacy systems you have to chat with or through.

      --
      Evan "Back in my day, we walked around the office looking at the back of each computer for the ring that fell out of the token network. And we *liked* it".

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  2. Element names work well for a small low-order net by XaXXon · · Score: 4, Insightful

    At my last job, we had ~40 machines in the low order of a class C. We named them after the elements in the periodic table. This gave us an easy naming scheme, and also served as a last-resort DNS system, as the last digit in the machine's IP number was the atomic weight of the element. It was pretty clever.

  3. Re:Seven Dwarfs? by graveytrain · · Score: 5, Funny

    Must be using windows calculator to get that remainder...

    --
    "Just tell him ya did it! That's what he wants to hear anyway..."
  4. alphanumeric dotted quad by Ars-Fartsica · · Score: 5, Interesting
    Create namespaces for your servers and structure them as such. For example, p.1.foo.com, p.2.foo.com, secure.3.foo.com, login.5.foo.com, etc.

    This lets you distinguish between the server number in a rotation (the second element) and the specific service it is supporting (the first element).

  5. Government conspiracies by 0zzymandias · · Score: 5, Funny

    I like to make my customers think... That's why I have echelon, bigbrother, etc. It's lot's of fun. I have learned to stay away from religious names though. I once had a baptist minister who wondered why a WHOIS on his domain showed his nameserver as Lucifer.

  6. Why stick to just one domain? by antiher0 · · Score: 4, Insightful

    Why not just do subdomains (e.g. web01.joesdeli.domain.com)? Ease of use... ease of maintenance (due to seperated dns entries). Just plain easy :)

  7. Check the RFC by wiredog · · Score: 5, Informative

    RFC 1178, Choosing a Name for Your Computer

    1. Re:Check the RFC by mmontour · · Score: 5, Informative

      Also see RFC2100, "The Naming of Hosts"

  8. No no no... by burtonator · · Score: 5, Funny

    use 128 bit UUIDs... no collision!

    AD87D0A9S8D90A9D80AD90ASD8A0D80F0A80D8F0AASD3

    if that isn't easy to remember I don't know what is!

  9. Re:Just to annoy the RIAA by gorehog · · Score: 5, Funny

    more fun is when segments crash..."Britney an J-Lo are going down on us again."

    Phrasing is everything.

  10. Don't name the machines after what they do by Jeffrey+Baker · · Score: 5, Insightful
    Make the hostname and the service orthogonal. If your machine is just named h0001.sfo.domain.net, you can easily repurpose it from http to imap service. But if the name is http0001.sfo.domain.net, you'll need to change DNS and change the machine's configuration files before you can repurpose the box. Then you'll have to update your ssh authorized_keys and known_hosts files, and any other information that deals with hosts.

    My company is an example of extremely stupid behavior. We have desktop machines named jsmithw2knyc. Anytime the machine is reassigned to another person, moved from office to office, or changes operating systems, the hostname and DNS must be updated. It's silly.

  11. Naming Conventions by nurightshu · · Score: 5, Interesting

    At the company I work at, we have ~5000 servers worldwide, and they all follow the same naming convention:

    • 2-character nation ID
    • 2-character state/province/region ID
    • 3-character city ID
    • 2-character production/development classifier
    • 3-character unique numeric number

    Thus, a production server in Minneapolis, Minnesota would be usmnminpsnnn , or a development server in Vancouver, BC, would be cabcvandsnnn .

    --
    They that would sacrifice their .sig space for that cliched Franklin quote deserve neither.
    1. Re:Naming Conventions by krokodil · · Score: 5, Interesting
      Thus, a production server in Minneapolis, Minnesota would be usmnminpsnnn


      I think snnn.ps.min.mn.us.company.com will look way better.

  12. i've worked in a similar environment by StandardDeviant · · Score: 5, Interesting

    At $job[-2] we had about 200 hosts, give or take. Effectively, we did the name + number bit, becuase in our case, the servers were either standalone functionality (e.g. primedns.foo.com, secdns.foo.com, extwww.foo.com), or part of a large herd of machines doing the same thing: pbs001 .. pbs111 .. pbsXYZ (number cruncher machines running the pbs job batch control system). My advice to you is locate the "unique" machines, and give them names that strongly reflect their function on the network. The "herd members" you should give numeric names to (e.g. aix9999, fbsd3333, lnux2222, etc.) that also reflect the operating system being used (standardize the abbreviated os names, of course, nothing like wondering if 'dux' is a machine that quacks or a data general UX host). Keep an electronic (and paper!) record of what client is on which herd machine. I know the number thing seems a little impersonal, but how many anime series are there that can scale to several thousand host names? Even if you like war and peace, you'd run out after several hundred...

  13. Two conventions I like: by Apuleius · · Score: 4, Interesting

    1. None at all. Good for security. A naming
    convention is a nice shortcut when a script
    kiddie is portscanning.

    2. Naming conventions. (I.e. name the
    Web server "Tolkein-Place-Names", the
    mail server "Famous-Composers", et cetera.)

  14. Re:themes are good by Dark+Paladin · · Score: 4, Funny

    Personally, I've thought about naming servers after sexually transmitted diseases. Imagine walking into a room: "Hey, can you check Syphylis? For some reason AIDS isn't talking to it."

  15. be sensible by furiousgeorge · · Score: 5, Insightful

    Do NOT use cutesy names. (Homer, Marge, etc etc etc). That works fine when you've got a lab of a dozen machines. When you've got thousands it's silly and unmangeable. I know I don't expect I'll be able to remember where one our of 5000 hosts is just because the name is "mickeymouse". Imagine just how functional that is for somebody who's new to your NOC?

    Personally I'd encode them using one or two characters to denote the platform ( i = intel, s = sun, h = hp, blah blah). Then use the additional characters to denote room, rack, etc etc. If you're allowed to use sub domains that makes your life much easier.

    Maybe I'm over pragmatic :) But with that many machines, the biggest problem you have is FINDING the machine when something goes wrong. My company here has a policy that we name machines after beaches --- "pismo" "waikiki" etc etc. Thats all fine and dandy..... until the someone starts screaming "WHO IS RUNNING HOST *LONGBEACH*??? YOU'RE SPEWING OUT CRAZY MULTICAST AND TRASHING THE NETWORK." Our host count is only in the low hundreds, but actually FINDING the offending machine is a big fat waste of time.

    If you absolutely have/want to use 'friendly' names. Give your machines multiple names..... the pretty one, and the ugly sensible one so you can easily map between the two when you have to.

    I hate to use it as an example --- but look at Hotmail when you log in. They are using subdomains and strict naming conventions for there servers. It's the only sensible thing to do..... unless you're trying to guarantee youself job security (and if thats the case and I was your boss and I found out i'd fire your ass for being a moron).

    1. Re:be sensible by DeathBunny · · Score: 5, Interesting
      Personally I'd encode them using one or two characters to denote the platform ( i = intel, s = sun, h = hp, blah blah). Then use the additional characters to denote room, rack, etc etc. If you're allowed to use sub domains that makes your life much easier.


      That's stupid. Now if I move the server from one rack space to another, or upgrade it to a different platform then all my users have to change the config on any applications that reference the server? Not a long term scalable solution.


      Keep location and platform information in a seperate document or database. Or create HINFO records in DNS.

  16. That's what CNAMES are for by wowbagger · · Score: 5, Insightful

    You should assign LOGICAL names to services, and then map them into actual hosts via CNAME records.

    For example, we have our servers named after the characters from Cheers - norm, diane, cliff, lillith, etc.

    We also have functional names - smtp, pop3, dns, etc.

    Now, in the DNS records, we have:

    smtp CNAME cliff
    pop3 CNAME cliff
    dns CNAME norm

    As a result, the clients are configured to send mail to smtp, get mail from pop3, but that is mapped into cliff. If we move outbound mail to norm, we just change the cname.

    1. Re:That's what CNAMES are for by DeathBunny · · Score: 4, Informative

      However you can have multiple "A" records for the same host. Assign the hosts "real" name (norm, etc) in on A record. Create another A record for smtp.yourdomain.org.

      Problem solved.

  17. Sheesh people, use subdomains by defile · · Score: 5, Informative

    The LIRR homepage is http://www.mta.nyc.ny.us/lirr/. The LIRR is run by the MTA, which is located in NYC, which is a city in NY, which is located in the US. Perfect scheme, and a suprisingly decent application of DNS. Especially for government.

    So why suffer with jdeli342.domain.com? Why not a.jdeli.domain.com, b.jdeli.domain.com, etc? In addition to allowing for easier delegation of services, you can set search orders in /etc/resolv.conf so you can simply type ``ssh b'' to hop from host a to host b. That's just golden.

    Some other examples..

    Mail Exchangers

    a.mx.domain.com
    b.mx.domain.com

    Nameservers

    c.ns.fudge.domain.com
    d.ns.fudge.domain.com

    Web servers

    e.web.domain.com
    f.web.domain.com

    And so on. If you get to z, make the next one aa, and then ab, etc.

    Also, functional names should not replace cute names. DNS allows you to assign more than one name to a machine. If a machine is repurposed for another ask, it should still be known by its unique cute name no matter where it goes. At the same time, a single host can have more than one functional name.

    No reason barney.domain.com can't also be bc.web.domain.com and e.porn.domain.com. :)

    A source of cute names? Oh, uhm, right now I use Roman empererors. There were tons of them.

  18. Remainder? by John+Harrison · · Score: 4, Funny
    The remainder what is left over after an integer division operation.

    If you had stuck with the word "answer" you would have been fine. But you had to try to look smart and look where that got you! Modded up as funny, while making a simple mistake yourself!

    If I were clever, I would leave a clever comment here.

  19. Re:Just to annoy the RIAA by _xeno_ · · Score: 5, Funny
    more fun is when segments crash..."Britney an J-Lo are going down on us again."

    I wonder what it means that my first thought was "the servers named Britney and J-Lo have stopped functioning" and it took almost a full 10 seconds before I realized the other meaning...

    Damn, I need to get out more...

    --
    You are in a maze of twisty little relative jumps, all alike.
  20. Re:Element names work well for a small low-order n by wirefarm · · Score: 5, Funny

    A good friend of mine was told to pick an element for his machine name at one job, but of course all of the good elements were taken by that time. (Who the hell wants to be Boron, after all...)

    What did he choose?

    Immodium.

    That still cracks me up - (thanks, Dave!)

    Cheers,
    Jim in Tokyo

    --
    -- My Weblog.
  21. Mary, call them all Mary by Pac · · Score: 4, Funny

    So you never have a problem remembering their names as with that girl in the restaurant last weekend. Why they have to have different names anyway. So just call them Mary as it should be and add a nice reminder to self about where you last saw the babe, as in MaryFromAccounting, MaryWebServing. You can make the reminders more complex just to help a bit, as in GorgeusMaryWebServing, PlainMaryWebServing.

  22. And after seven... by Ungrounded+Lightning · · Score: 5, Funny

    My wife was expanding a lab with a preexisting "seven dwarves" naming scheme. So she invented some extra dwarves.

    The two I remember were "sleazy" and "scuzzy".

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  23. Re:Element names work well for a small low-order n by j3110 · · Score: 4, Funny

    You mean atomic number right? Or was 2 Deutronium? :) Yep... Deutronium is unstable, it crashed again last night. Something about Deutronium's configuration, I guess. Sounds like this guy needs to invent a few elements. He'll even make it to the coveted Unobtainium. (I wouldn't use this one in hopes that I could get that Quantum computer on the net.) I guess I'm odd for giving them a name based on their function (Web1, web2, db1, db2). My CSC dept. names their servers after birds( Eagle, Hawk, Ospre(doesn't help when you can't spell them)). A friend and I built a cluster, and named it chicken. We even printed a picture and put it on the front to make it easily identifiable.

    I like elements though, very clever! :)

    --
    Karma Clown
  24. Re:Element names work well for a small low-order n by sam_handelman · · Score: 5, Interesting

    I'm sure that he meant atomic number, since atomic weights are non-integer, except for Carbon.

    Personally, I favor naming them after scientists - this is what 95% of the world's laboratories in every field do. The two computers in my dad's lab are Watson and Crick (he doesn't even work with DNA). Substitute other sorts of famous people; presidents, athletes, whatever.

    The anime characters are good, if that's what people in your group can remember. One lab I was in that had a lot of computers used deities; Linux were Hindu deities, NT were Greek, and Irix were Egyptian. We added a Mac (OS X) which I named Arawn (Welsh deity).

    With 200 machines, you're gonna run out of pet names really fast, so I think you'd need to assign a whole new category of names to each busines, so Joe's Delivery could get Rolling Stones songs, and John's Delicatessen could get war criminals. That would be cool, and that way any administrative subdivisions could use naming conventions that they were good at remembering.

    Oh! I have an idea, you could assign each company a word (Winter and Dog, say) and name every computer associated with that company that word, in a different language. All of the web-servers could be french (Hiver and Chien?), the POP servers spanish (Invierno and Perro) and so forth.

    --
    The good and new comes from no quarter where it is looked for, and is always something different from what is expected.
  25. Re:No... by Anonymous Coward · · Score: 5, Funny

    Actually, he's probably referring to the three living dwarves. Only Grumpy, Bashful and Doc are still alive.

    Sleepy was killed in 1968 when he accidently drove off a cliff (most people who know Sleepy dispute the police report that indicated alcohol was to blame).

    Sneezy died of natural causes in 1973 (pollen counts were extremely high that year).

    Happy and Dopey were found dead in a hotel room in 1982 of an aparent heroin overdose.

  26. Re:More themes by redcup · · Score: 5, Funny

    That still doesn't beat sexual positions.

    "Hey, would you try DoggyStyle? I can't get in.

    --

    RC
  27. Re:Element names work well for a small low-order n by DA_MAN_DA_MYTH · · Score: 5, Funny

    Thank you, I just hit an all time low when I just looked down at my dev machine I am at right now, realizing my machine's name. The label I happen to see upon the face...

    BORON

    --
    "It takes many nails to build a crib, but one screw to fill it."
  28. Subdomain by function by scotpurl · · Score: 5, Insightful

    Create subdomains based upon server function. w.foo.com for web, f.foo.com for file services, d.foo.com for DNS, etc. Expand to two-digit subdomains, *.dx.foo.com or *.w9.foo.com if you need more.

    Skip the themes for individual server names. You can use themes for DNS subdomains, but you don't need to actually name the "gemini" server group *.gemini.foo.com, but you can call the *.g.foo.com server group the gemini group.

    You don't need to throw any reference to the operating system in the DNS name. If you replace a server with one from a different OS (like you migrate your database from HPUX to AS/400 or Linux), then you have to run around to several places and change the DNS name that other boxes point to. It also allows you to cluster mixed operating systems (good for reliability), and to transition from one OS to the other.

    Finally, name your servers numerically as you add them to each sub-function group. Old servers that are slow and coming off lease soon will have lower numbers than higher ones. Just start with A0000001 for the first one in each domain, and go. If there are too many servers starting with A, then be slightly redundant and have the first letter of the server name match the single-letter subdomain. The first DNS server would be d00000001.d.foo.com.

  29. Re:Instead of Sci-Fi by Pig+Hogger · · Score: 4, Funny
    and do you call the win2k box uranus?
    Don't you know? The International Astronomical Union just renamed Uranus, because it was tired of the enless jokes about that.

    It is now named Urectum.

  30. Re:Just to annoy the RIAA by Anonymous+DWord · · Score: 5, Funny

    "Ohmigod! Britney's ports are all open! She's getting rooted like crazy!"

    --
    "If he thinks he can hide and run from the United States and our allies, he's sorely mistaken." Bush on bin Laden
  31. Boot Up! by epsalon · · Score: 5, Funny

    A:Boot up?
    B:Which server?
    A:Up.
    B:Up who?
    A:The server.
    B:Which?
    A:Boot up.
    B:Boot up what server?
    A:No no what server should stay up!
    B:I don't know.
    A:No no that's our web server.
    B:Your web server is "I don't know"?
    A:Yes. But nevermind, we need to boot up.
    B:What server?
    A:What server should stay up.
    B:I'm ASKING YOU THAT! WHAT SERVER SHOULD STAY UP?
    A:Certainly.
    B:Oh at last! So certainly should stay up. Ok, so I should boot what server?
    A:No no no, what server should stay up!
    B:Certainly.
    A:OK, so now boot up!
    B:AAAAARGH! What does that server do?
    A:It's a mail server.
    B:So, what you get mail what server does it say in the headers it's from?
    A:No no, what server's our web server. It says it's from up.
    B:What do you mean up? Mail can't come from up!
    A:It can if it's our mail server.
    B:You're mail server is called "it" and it should boot it up?
    A:No no no! It's our DNS server! We should be booting up!
    B:So we should be booting it up?
    A:No. We should be booting up.
    B:THAT'S WHAT I SAID!

    ...