insert short and long hostname in /etc/hosts