title: getaddrinfo() vs NAPTR/SRV record
body: <p>I have a doubt regarding Domain name resolution.We can do address resolution from DNS to ip-address format by using the function <strong>getaddrinfo()</strong> or by the procedure of NAPTR query,SRV record query and A/AAAA record.
  1. Does the function use getaddrinfo() use the NAPTR query technique internally ? 
  2. What is the advantage of using the function getaddrinfo() over the other procedure ?</p>