Fix #15170 - keep comments within the hosts file

Ensure that comments remain in the /etc/hosts file