Link to home
Start Free TrialLog in
Avatar of Ashok Kandavel
Ashok KandavelFlag for Australia

asked on

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.
SOLUTION
Avatar of Hello There
Hello There

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Siegfried Sbrzesny
Siegfried Sbrzesny

Set up a Nat network on your host - instructions on WinServer host can be found here: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup -nat-network or here https://www.experiencingit.net/windows/windows-server-2016-nat-router/

 Which host system do you use ?
Both servers have different names, of course?
Server A should have IP 192.168.1.10 with Name ServerA
Server B should have IP 192.168.1.20 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
Do you have conflicting MAC Addresses by any chance ?
another question, do you have a DHCP Server?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ashok Kandavel

ASKER

I had to go to the DNS server. The new file server has the hostname FileServer1 with the ip 10.244.5.8. An existing CNAME record FileServer1 was pointing to FileServer2 (A record 10.244.5.10). I've deleted it and created an A record for FileServer1 pointing to 10.244.5.8. This solved the issue.
my answer was not marked as assisted answer, thus i did not get my points. kindly check.