replacing static ip with hostname