add a function to add a new entry in the hosts file