create proper hostname for redis instance