server: insert values detected from 'hostname' command to '/etc/hosts'.