Long time ago I started to develop some kind of stealthmode-demon in c++. Part of this is to be only run as root and another part of it is, to change the hostname to a randomn generated one. I experienced, that any change to my hostname ( either via virtual terminal or via my stealthdemon or via a dhcp-feature ) somehow disturbs the system. One example is, that suddenly all KDE-apps cannot start, neither by shortcut nor by click. If I reset my hostname to the original one, then all seems to work perfect.
My questions are:
- What else is invoked, when issuing hostname via bash ?
- What else is invoked, when issuing hostname in a c/c++ code ?
- What is the reason for the strange behaviour? ( Although I guess, it can be,that either xorg or kde itself was somehow linked to the old hostname, but after the change they are not linked anymore )
- What can be done, to keep the system stable but still allowing to change a hostname , either by shell or by code ?
Thx in advance.