Fixed name resolved problem for master node if it has dom*
Added a command to parse the ip
Added function to purge known_host files