generate /etc/hosts file