I’d note that the above is not a recommended solution – there are ways around this without changing the hostname.