News for hackers. Stuff that matters.
Re:RFC 1178: Choosing a name for your computer (1990) by lamontcg on Sunday February 07, 2021 @02:00PM (#26057195)
Over 5 years at working at Amazon (quite some time ago, I don't know what they do now) and we happily violated "no domain names" without any issue for linux servers. If you don't have linux boxes that span different networks it doesn't cause a problem to have server have one single domain name and have the hostname be the same. Linux boxes aren't proper security devices or router so don't use them as that and don't mutihome them. The routers and switches were given short names. These RFCs simply don't capture that there are rules you can adopt (and if you're big enough -- which is not terribly big) then you can discard some of these suggestions completely. There is not a one-size-fits-all. I ignored this RFC's suggestion at a fairly massive scale for 5 years and never had an issue.

Also don't fall into the trap of just assigning random serial numbers to servers. I later worked somewhere that did this and it makes it difficult to communicate about the servers in the middle of outages. I've had communication issues where I've been talking to another engineer and I was using the first hex digits of the server name and they were using the last as shortcuts and we thought we were logged into different servers and it was the same one. You hardly ever want humans dealing with your server names, but when humans do need to use your server names it is one of the times that really matter because shit is on fire.

Group them by single purpose of what the cluster does with some kind of incrementing number. The idea to use theme names and not "project" names is also deeply 100% wrong. When you have 100,000s of servers you run out of theme names and you'll fail to remember the name schemes in the middle of an outage. Name them after what the servers do, and keep them more or less reflecting their purpose. Consider carefully some kind of numbering scheme to keep the short names unique across datacenters so you don't have a dozen foo-101 servers. You may want to use incrementing serial numbers for both datacenters and cluster members or something so "foo-1-101" and number your datacenters (or logical cluster number if you're really big and stamp them out 30,000 at a time or something).

Oh right this is the RFC from 1990. Yeah, shit has changed, this RFC needs to evolve.

Back in 1990 when this was written a single system admin hand managing 20-30 servers was a lot. Web didn't exist. I can't recall any kind of load balancing or much clustering. You might have SunOS boxes running RIP doing routing across internal subnets that were 10baseT. NAT and firewalls weren't used much at all and servers would just sit on public IPs. This RFC is prehistoric.

Re:RFC 1178: Choosing a name for your computer (1990) by BlueTemplar on Monday February 08, 2021 @08:48PM (#26072864)
> NAT and firewalls weren't used much at all and servers would just sit on public IPs.

All 3 of these are more or less coming back with IPv6.

Re:RFC 1178: Choosing a name for your computer (1990) by lamontcg on Friday February 12, 2021 @01:30AM (#26111234)
AFAIK NAT goes away but firewall don't (but then firewalls have a horrible fail-open problem since all IPs are routable).