Server returning incorrect ip address when the hostname is pinged

Hi, I have a Server 2016 built on a VM. When I ping the host name I get an incorrect ip address (which is my existing server in another VM). I read somewhere it was due to Credentials Manager. Tried removing it but still same. I flushed the dns but still the same. I even removed the server from domain and added it back. I also tried to map the folder on this server using hostname but unable to locate it but when I use ip it can locate. Not sure what else to try.
Ashok KandavelSr. Service Operation EngineerAsked:
Who is Participating?
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.

Hello ThereSystem AdministratorCommented:
On client:
ipconfig /flushdns
ipconfig /registerdns

Open in new window

Wait 15mins...

Server should point to DNS server (yourself) with static IP.

Also go to DNS server and check for any DNS mismatch.
Siegfried SbrzesnyCommented:
Set up a Nat network on your host - instructions on WinServer host can be found here: -nat-network or here

 Which host system do you use ?
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Both servers have different names, of course?
CEOs need to know what they should worry about

Nearly every week during the past few years has featured a headline about the latest data breach, malware attack, ransomware demand, or unrecoverable corporate data loss. Those stories are frequently followed by news that the CEOs at those companies were forced to resign.

Sam Simon NasserIT Support ProfessionalCommented:
Server A should have IP with Name ServerA
Server B should have IP with Name ServerB

this is a simple scenario, when you ping ServerA, it will point you to 1.10 not 1.20
check if you have static IPs, or try this trick: go to device manager and delete the Ethernet card, and refresh, it should bring a clean clear Ethernet card with no customization
Zaheer IqbalTechnical Assurance & ImplementationCommented:
Do you have conflicting MAC Addresses by any chance ?
Sam Simon NasserIT Support ProfessionalCommented:
another question, do you have a DHCP Server?
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Commented:
Have a look at all the DNS records in Active Directory in the forward lookup zone for that servers hostname, remove the duplicates.

Also have a look in the reverse lookup zones same steps as above.

Then flush and register dns from the server.

I learned that the best way to do all of this stuff is by DHCP registration via active directory using DNS admins and DNS Proxy Admins groups in AD for the DHCP servers, there are also all kinds of other fancy options under DHCP advanced.

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
Ashok KandavelSr. Service Operation EngineerAuthor Commented:
I had to go to the DNS server. The new file server has the hostname FileServer1 with the ip An existing CNAME record FileServer1 was pointing to FileServer2 (A record I've deleted it and created an A record for FileServer1 pointing to This solved the issue.
Sam Simon NasserIT Support ProfessionalCommented:
my answer was not marked as assisted answer, thus i did not get my points. kindly check.
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

From novice to tech pro — start learning today.