Added a function to updare a host in the host file

Added a simple function which find a host in the host file and does
a blank replace. If the host does not exist the host is simple added.