Allow hosts file to be updated with the ip address of the node rather
than a static ip address.
Fix rubocop errors