Setting host name in main method