Old Server name

I built a 2012 r2 server.  I named the server with an underscore in the name as requested by the application developer, e.g. "server_name".

Later we discovered that this was causing an issue with the server, so we changed the name to, e.g. "server-name".

However, when we load software on the server, it finds the server name with the underscore instead of the server name with the hyphen.

Where is it getting this?  DNS shows the right name, the server shows the right name.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael MachieIT SupervisorCommented:
You stated: "..when we load software.."
Do you mean any and all software being installed or only the software that forced the server name change?

Have you rebooted the server after changing the Server name?
The name change will not fully apply until a reboot is completed, causing the symptoms you describe.
sfletcher1959VPAuthor Commented:
The server has been restarted many times.  We have an application that utilizes a web-service for collecting data.  When we installed the web-service, it completed the installation, but would error out when we ran the application.  In troubleshooting, we discovered that the web-service was calling the old server name, not the new server name.  This was not something we configured during the install, and I don't see a way to change it now.

So what we are attempting to do is find out where it pulled the old server name from during the install.  If we can correct that, we should be able to uninstall and re install the web-service and hopefully that will solve the problem.
Michael MachieIT SupervisorCommented:
Some quick thoughts:

Is the App and web service on the same local server?

Without knowing anything about your environment or software, I wonder if your Web Service is calling the IP of the old/ new server and DNS returned the wrong name?

Perhaps a Host file was manually edited in the past and now needs to be updated?

Is the service using a named pipe or a custom Database instance? A database can use a machine's name for a named instance as a connection.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael MachieIT SupervisorCommented:
Thanks and glad it is resolved!

Which of the items in my suggestion was the issue? Specifying this will allow future viewers to get to the solution quicker.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.