title: Converting IP address to host name via DNS.GetHostEntry
body: <p>I am trying to get the hostname by passing in the ip address. I use the following code.</p>
  
  <pre><code>System.Net.Dns.GetHostEntry("192.168.x.x").HostName
  </code></pre>
  
  <p>For some host the above code is returning correctly the hostname, but for few other host it throws an exception 'No Such host found'.</p>
  
  <p>Could any one tell me why is this happening for some hosts?</p>
  
  <p>I used the above code in an asp.net mvc application.</p>