How Ping is still working even if server name has changed?

SAM2009 used Ask the Experts™

This is my situation:

ServerA has been renamed ServerB and keep same ip adr:

When I do ping:

-Ping ServerA: ping ok

-Ping ServerB: ping ok

-Ping -a ServerB respond

-NSLOOKUP ServerB: ok

-NSLOOKUP ServerA:  Not respond

Wins is not activated on ServerB.

How Ping ServerA is stilL WOKRING?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

probably there is stil a dns record available for serverA or it is still in the local cache of your computer.
There is no WINS on another server in your network?
Another option could be if you have put serverA in the local hosts file.
at the command prompt type ipconfig /flushdns
Leon FesterSenior Solutions Architect

WINS may not be configured on ServerB, but is it configured on ServerA?
Remember the NIC setting on your localhost/workstation will determine which WINS server to use.

Run an ipconfig /all on the workstation and verify the name of the WINS Server.

You can download a tool from the Microsoft site called NBLOOKUP.
It works similarly to NSLOOKUP but queries the WINS server database.

P.S. When pinging ServerA, do you use the FQDN?
Does it respond with the FQDN or only with the short name?
If shortname, then you're doing WINS name resolution, if FQDN then you're using DNS name resolution.
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

From my understanding and I may be wrong but re naming your server once it was set up is a big no no. atleast on server 2003, I was told that a smiple name change would cause so many underlying problems that it was best to wipe the server and start a new install using the name you desire to change it to. Could be wrong though. also have you ran CEICW since the name change?


The Host Name is ServerA in "IPCONIFG /all "but when I do :

nbtstat -R
nbtstat -c: it still  show ServerA

When I ping ServerA I just use shortname. By the way the server is on DHCP then is it possible the Wins is from the DHCP server?
Leon FesterSenior Solutions Architect

I need to know what is returning in your query...not what version of the hostname you're using.
Post a screenshot of your ping, and I'll show you what I'm looking for.

DHCP doesn't offer any WINS name resolution.
run nbtstat -RR and then check your cache.

did you try rebooting this machine to see what happens with nothing cached?
Does this problem occur on any other workstation?
It could be that there is an entry in the hosts/lmhosts files for this server.
Check these files in %windir%\system32\drivers\etc.
if you have already done ipconfig /flushdns
login to all DNS server and check whether any one of the DNS contains old record - identify it and delete it manually.
did you remove old server from the domain before making any changes or disconnecting it from network.  If not - DNS servers might have old records and may cause such issue
Hi guys,

This is why I think there is Wins activated in DHCP and yes it is possible to do that:

1- ping ServerB: get FQDN
2- ping ServerA: get just shortname
3- NSLOOKUP ServerB: get answer
4- NSLOOKUP ServerA: no answer
5- nbtstat -R and nbtstat -c: clear cache
6- After doing ping ServerA, nbtstat -c show ServerA again
7- Now after 24h I think the Wins is updated because ping ServerA doesn't respond anymore
8- There are nothing in LMHOST and HOST files

Yesterday the ServerB has been reboot and I could still ping ServerA and same result from another computer. I don't have acces to DNS and DHCP but according to the result it should have a Wins configured in DHCP scope (Unlike ServerB, DHCP is a Linux server)


For the reasons I mentionned it let us suppose Wins is activated in DHCP.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial