update hostname to match hosts entry