Set /etc/hosts alias to match hostname

Issue: #5748

On debian based systems we need to change the /etc/hosts file to reflect the host name alias