Translating from hostname and ip