Randomize hostname?

In rc.conf you pass the hostname permanently, and It will be applied after reboot.
If you want hostname to be changed everytime (I don't know why), you can do it via hostname command.

Something like:


hostname $(cat /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | head -c 10)
 
Back
Top