News for hackers. Stuff that matters.
Re:Things I Learnt from a Senior Software Engineer by rileymat2 on Sunday August 25, 2019 @06:51PM (#20796145)
I am not understanding why the machine name could not be changed when it's purpose changed? Is an immutable name unique to that environment?
Re:Things I Learnt from a Senior Software Engineer by tolien on Sunday August 25, 2019 @07:26PM (#20796329)
Because you'd probably also change the SMB or DNS name for the machine when you rename it, and that opens a can of worms where you try to work out what's using that reference and change everything that matters.

Now renaming the machine is a multi-day thing involving configuration changes (and that assumes it's not hard coded anywhere) to a whole bunch of software; inevitably you'll miss some and it'll break. Easier not to bother.

Re:Things I Learnt from a Senior Software Engineer by cortesoft on Sunday August 25, 2019 @11:19PM (#20797219)
If something else is still referencing the old machine, it means you aren't changing its purpose but only adding to it. I would imagine a change of purpose would normally be a reprov.
Re:Things I Learnt from a Senior Software Engineer by jolmg on Monday August 26, 2019 @11:47AM (#20800790)
Changes can be gradual. I know a server that was named after a single service the machine was set-up for. Then later across a span of time, more services needed to be added. They're unrelated services, but circumstances necessitated them being installed on this server. Then even later, the original service ceased to be used and was shut-down.

Changing the name might imply changing references in other services that make reference to this server for the current services that are still running. It might also imply changing bookmarks in the machines of the users of the services still running on this server.

The bookmarks are a concern because many users don't know how to do anything with bookmarks other than clicking on them, so you can't depend on them understanding how to edit the URLs of these bookmarks. Yes, that's depressing.

Re:Things I Learnt from a Senior Software Engineer by teddyh on Monday August 26, 2019 @02:54AM (#20797948)
RFC 1178 answers this:

However, let me add that if you later decide to change a name (to something sensible like you should have chosen in the first place), you are going to be amazed at the amount of pain awaiting you. No matter how easy the manuals suggest it is to change a name, you will find that lots of obscure software has rapidly accumulated which refers to that computer using that now-ugly name. It all has to be found and changed. People mailing to you from other sites have to be told. And you will have to remember that names on old backup media labels correspond to different names.

Re:Things I Learnt from a Senior Software Engineer by xorcist on Monday August 26, 2019 @05:20AM (#20798385)
It is a good idea not to re-use host names. Otherwise you may encounter soft fails if the old name is still accessible, especially in systems outside of your control. If there are certificates generated it will also guarantee that they can not be re-used. So it is a good rule of thumb in larger organizations.