output hostname and ip