Automaticly set the machine name to the hostname

Signed-off-by: hajee <hajee@moretIA.com>