Allow hosts file to be updated with the ip address of the node

Using a static IP address in the hosts file interferes with DNS server entries (as they differ). This causes issue when trying to use hadoop hdfs.

Added the ability to use the node ip address.