I’m changing the hostname. Deal with it!
Lately, I’ve been crossing paths with too many enterprise-level server products that, once installed, can’t tolerate any change to the local machine’s hostname.
Don’t get me wrong, I’m not spoiled to dare wishing that a hostname change will be handle in run-time, without a restart. I’m not even suggesting that the change would be automatically detected and processed on the next product restart. I much more modest that that, Just having a documented working procedure on how to do that offline would make me a happy man. The current, glum, state of affairs is that some products would have to be completely re-installed if the hostname were to change.
Some of the reasons for changing a machine’s hostname might be:
(1) You want to clone a new server from a, best practiced already installed, server template, each cloned copy should have a unique computer name (very useful in test environments, especially handy when making a vm duplicate of a template virtual machine).
(2) You have an existing server which changed its business role – you plan to install a new application module (EAR), but want to keep the existing middleware infrastructure (JEE AS).
(3) You no longer want the server to be reachable by it’s original name (without making use of DNS administration, and aliases tricks).
(4) You want to implement a new server naming convention in your production environment.
Now Programmers, how hard can it be to live in peace with a dynamic hostname?
(1) If you are sure that the target network resource is the local machine then just use the localhost loopback interface instead of a hostname, when addressing it.
(2) Query the OS when retrieving the machine’s hostname, instead of relying on static, sometimes binary, stale, configuration files.
(3) Keep all application network resources is a centralized configuration repository. Provide an offline API for the admin to access it.
As a side note:
IBM WAS ND 6.X now has, a long awaited, offline API for updating the hostname of a machine.
If you know and care about other products that support or don’t support hostname updates, please place your comment.
|
This entry was posted by Gili Nachum on June 21, 2008 at 07:36, and is filed under Operating Systems, virtualization. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
My attempts with IP Spoofing – Revisited
about 2 years ago - 4 comments
One upon a time (Jan 2009) I’ve written this post, basically saying that you’re not likely to be able to spoof IP address over the Internet. Turns out I was dead wrong! It happened so the very experienced Mr Filipe, from Brazil, came across the post and left me a comment saying that Spoofing over…
“Hypervisor edition” – what’s that?
about 3 years ago - 2 comments
WebSphere have announced WAS hypervisor edition. You get an OVF package with a ready to use WAS profile running on Linux. The OVF package can be deployed on VMWare ESX/ESXi and IBM’s cludeburst appliance. Websphere also say that they carried out WAS best-practice tuning for the OS. Not sure how mattering this tuning is considering…
NAT in VMWare vSphere/ESX – In a nut shell
about 3 years ago - No comments
This post is about NATing an ESX VM, but first, why do I need NAT: The SIP protocol is not NAT oblivious. To traverse NAT our application has to replace the DNS in the SIP message contact header to the external FQDN that the message receiver will be sending responses to (A NAT with static…
Why is Thread.sleep() inherently inaccurate
about 3 years ago - 2 comments
Avi Ribchinsky, a friend and a college of mien, is transitioning from C++ to the Java world. He had been playing with Thread.sleep(), when he noticed that the sleep method might oversleep more than ordered, and moreover, it could also under sleep (see Fig 1). Coming from the C++ world, that surely caught him surprised…
A hand made freeware windows firewall
about 3 years ago - No comments
I have two windows servers that shouldn’t talk to each other. How do I make sure they don’t? Right, why not use some firewall? well, because I can’t just install any software on these servers, company regulations, and windows’ built-in firewall suck big time (only inbound, have to configure ALL exceptions). On Linux this is…
My attempts with IP Spoofing
about 4 years ago - 15 comments
Why did I wanted to spoof source IP addresses? and why did I failed? Here’s the story before you: ———— UPDATE Sep/2010: Dear Filipe (see comments below) had proven to me that spoofing over the internet is indeed possible, read all about it on the continuation post: My attempts with IP Spoofing – Revisited. Now…
Book of the month – Linux Server Hacks
about 4 years ago - 3 comments
I just read through most of O’Reilly’s Linux Server Hacks book. I expected another dull Linux how-to book, which goes over the man/info of the most obvious commands, but instead I found an interesting, original, advanced hardcore book, full of Linux goodies to brag about in front of my colleagues. Some note worthy items: A…
VMWare: converting a hosted VM to a hypervisor VM – Linux troubleshooting
about 4 years ago - No comments
When using the VMWare convertor utility to convert between VmWare player/Workstation/server VM images to an ESX image, if the VM you are converting is Linux you might run into boot problems (“kernel panic” message) due to SCSI drivers problems. I found a couple of resources about the problem but none fully worked for me, here…

Via e-mail
about 4 years ago
Strong arguments. Another reason for changing an installation hostname is that administrators usually install a new system in a staging area, and then when moving the system (physically as well) to the production network a hostname change is called for.
about 1 year ago
I’d like to +1 this, its quite annoying when you release a set of preconfigured Virtual Machines that get installed at various sites with less than optimal time and expertise available to setup/configure them.