title: How can I get a hostname from an IPv4 address in C?
body: <p>I need a simple function that outputs a <code>char* hostname</code>, given a <code>char* IPAddress</code>. Any ideas or hints?</p>
  
  <p>Also, is easiest way to get the IP address from a hostname is <code>gethostbyname()</code> and <code>inet_ntoa()</code> is that correct?</p>