title: C getaddrinfo() not resolving name
body: <p>I have a program (written in C) that uses <code>getaddrinfo()</code> and its first parameter is the host name that I want it to get address information about, let's say it is "domain".  In my <code>/etc/hosts</code> file on the same machine I can see that "domain" is supposed to resolve to 192.168.1.200.  When I run the program it hangs on this call every time and cannot get the address information.  However, if I replace "domain" with the actual IP Address, it works just fine.</p>
  
  <p>By the way, this problem didn't exist a week or so ago, it is a new problem that has suddenly reared it's ugly head.  I am fairly certain that something must have been done to this machine in the last week, and I have attempted to verify this with our other staff, but they also have no idea why this would occur.</p>
  
  <p>So, my question is, does anyone out there have any idea what this would suddenly be occurring?  What can I check to verify that it is configured how it should be?  Thanks in advance.</p>