[WIP] Change hostname transition

Do not merge, review only, @ar4s @xliiv .