Updated Name Server to print out an error when it cannot retreive the hostname, also implemented the client struct