fixing hostname resolve