Use hostname instead of raw IP address

Signed-off-by: Lilis Iskandar <veeableful@gmail.com>