I'm not sure what the problem could be.
Maybe you have a problem with the network that the hostname is used from your network configuration.
Another possibility is that you have it hardcoded in the applicaiton or use a datastore which contains that outdated information.