title: How to get Domain Name of IP address and IP address from Domain Name in Objective C?
body: <p>I am able to get the current IP address of my device/machine that I am using - by <a href="https://stackoverflow.com/questions/677530">using this question's answer</a>.</p>
  
  <p>I have gone through <a href="https://stackoverflow.com/questions/2462398">this question</a>. Java allows to get the IP address from a domain name. Is it possible in Objective C? How?</p>
  
  <p>The second question is How to get the name of device/machine by using its IP address. Say for example I have an IP address 192.168.0.74 = What is the device name? in Objective C?</p>