Changed over to awk for host ip generation