getaddrinfo() returns 127.0.0.1 for remote host
I have an application which uses getaddrinfo() to translate from the hostname of a PC in a Windows Workgroup to the IPV4 address for that PC on the LAN.  (Note, I don't mean getting the address of the PC the code is running on, I mean the address of another PC on the LAN!) This has been working in the field as well as in the lab for quite some time but now I have a Windows 7 (32 bit) PC that behaves anomalously.  The hostname for this PC is "elbow".

I compiled the sample code provided by Microsoft for getaddrinfo() at http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx

When I run this sample code on any PC on my LAN and specify "elbow" as the hostname, getaddrinfo() returns the loopback address 127.0.0.1 instead of the correct one (192.168.1.110).  However, if I specify any other hostname getaddrinfo() returns the correct address!

At some point in the past "elbow" did NOT exhibit this behavior, so clearly something about that PC has changed to cause this behavior.  I have tried restoring the PC disk image to a point where I *think* it did not cause this behavior, but that made no change.
It also makes no difference whether the PC is hardwired or wirelessly connected to the LAN.  DHCP is enabled for all PCs on the LAN.  The behavior is persistent even with a complete power-down of all PCs, routers and switches.

getaddrinfo() returns 127.0.0.1 for remote host
===

I have an application which uses getaddrinfo() to translate from the hostname of a PC in a Windows Workgroup to the IPV4 address for that PC on the LAN.  (Note, I don't mean getting the address of the PC the code is running on, I mean the address of another PC on the LAN!) This has been working in the field as well as in the lab for quite some time but now I have a Windows 7 (32 bit) PC that behaves anomalously.  The hostname for this PC is "elbow".

I compiled the sample code provided by Microsoft for getaddrinfo() at http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx

When I run this sample code on any PC on my LAN and specify "elbow" as the hostname, getaddrinfo() returns the loopback address 127.0.0.1 instead of the correct one (192.168.1.110).  However, if I specify any other hostname getaddrinfo() returns the correct address!

At some point in the past "elbow" did NOT exhibit this behavior, so clearly something about that PC has changed to cause this behavior.  I have tried restoring the PC disk image to a point where I *think* it did not cause this behavior, but that made no change.
It also makes no difference whether the PC is hardwired or wirelessly connected to the LAN.  DHCP is enabled for all PCs on the LAN.  The behavior is persistent even with a complete power-down of all PCs, routers and switches.
